Question Bank
Filter real, curated interview questions by topic, difficulty, and type. Open any question to practice and rate your confidence.
Filter by company and topic2 active
RecentMost viewed
9 questionsFree0Locked9
- Given a nested list of integers, return the sum of all integers weighted by their depth (an integer at depth d contributes value * d). Lists at the top level have depth 1. (LeetCode 339 - Nested List Weight Sum)IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at LinkedIn
- Design a Max Stack (LeetCode 716) that supports push, pop, top, peekMax and popMax, where popMax removes and returns the maximum element and, if there are several maximums, only the one closest to the top.AdvancedDsa· coding₹499 (Pro plan required)Reported frequent at LinkedIn
- Given an integer array nums, find the contiguous subarray with the largest product and return that product. (LeetCode 152 - Maximum Product Subarray)IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at LinkedIn
- Given a binary tree, collect and return its nodes as if repeatedly removing all leaves until the tree is empty - each removal round is one list in the output. (LeetCode 366 - Find Leaves of Binary Tree)IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at LinkedIn
- Design a data structure initialized with a list of words that efficiently answers repeated queries for the shortest distance between two given words. (LeetCode 244 - Shortest Word Distance II)IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at LinkedIn
- Given an undirected graph with n nodes and a list of edges, detect whether it contains a cycle using Union-Find (Disjoint Set Union).IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at LinkedIn
- Amazon OA: Given a stream of integers, you need to support insert and 'find median' efficiently. Which structure gives O(log n) insert and O(1) median?AdvancedDsa· multiple choice₹99 (Interview Prep or Pro plan required)
- You must design a data structure supporting insert, delete, and getRandom in O(1) average time, where getRandom returns any stored element with uniform probability. Which combination of structures achieves this?IntermediateDsa· multiple choice₹99 (Interview Prep or Pro plan required)
- Given a string and a pattern, find the smallest window of the string that contains all characters of the pattern (with multiplicity).AdvancedDsa· coding₹499 (Pro plan required)