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
11 questionsFree1Locked10
- Given a collection of intervals, merge all overlapping intervals.IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Amazon+3
- Decode a string encoded as k[substring], where the substring is repeated k times, possibly nested (e.g. '3[a2[c]]' -> 'accaccacc').IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Google
- Given a reference to a node in a connected undirected graph, return a deep copy (clone) of the graph.IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Microsoft+1
- Design and implement an LRU cache with O(1) get and put.IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Apple+3
- Implement a Logger Rate Limiter: build a class with
shouldPrintMessage(timestamp, message)that returns true only if the message has NOT been printed in the last 10 seconds; otherwise return false.IntermediateDsa· codingFreeReported frequent at Uber - Implement an in-memory file system in Python that supports the shell commands mkdir, cd, ls and pwd, with absolute and relative paths and clear errors.AdvancedDsa· coding₹499 (Pro plan required)Reported frequent at Uber
- Cheapest Flights Within K Stops: given n cities, a list of flights [from, to, price], a source, a destination and an integer K, return the cheapest price from source to destination with at most K stops, or -1 if it is not possible.AdvancedDsa· coding₹499 (Pro plan required)Reported frequent at Airbnb+1
- Uber OA: For matching nearby drivers to riders using 2D geographic coordinates, which spatial data structure enables efficient nearest-neighbor and range queries?AdvancedDsa· multiple choice₹499 (Pro plan required)
- Uber OA: In a system computing surge pricing, you need the maximum value in every sliding window of size k over a stream of n prices. What is the optimal time complexity?AdvancedDsa· multiple choice₹99 (Interview Prep or Pro plan required)
- Nodes are 4-digit codes and you can move between codes that differ by one digit step; only some codes are allowed. Find the minimum number of transitions from a start code to a target, or -1.IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)
- Given timestamped friendship logs between n people, find the earliest time when everyone is connected (Earliest Moment When Everyone Become Friends).IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)