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 topic1 active
RecentMost viewed
53 questionsFree11Locked42
- Given an array of integers and a target, return the indices of the two numbers that add up to the target (Two Sum).
[Hash Map]BeginnerDsa· codingFreeReported frequent at Amazon+1 - Return an array where each element is the product of all others without using division (Product of Array Except Self).
[Prefix Sum]IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Google - Determine whether a string is a valid palindrome, ignoring non-alphanumeric characters.
[Two Pointers]BeginnerDsa· codingFreeReported frequent at Accenture - Find the length of the longest substring without repeating characters.
[Sliding Window]IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Amazon+1 - Determine whether a string of brackets
()[]{}is valid (properly balanced).[Stack]BeginnerDsa· codingFreeReported frequent at Amazon - Reverse a singly linked list, iteratively and recursively.BeginnerDsa· codingFreeReported frequent at Microsoft
- Validate whether a binary tree is a valid binary search tree.
[DFS]IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Microsoft - Find the k-th largest element in an unsorted array.
[Heap]IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Apple+1 - Count the number of islands in a 2D grid of land and water.
[BFS/DFS]IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Amazon+2 - Given course prerequisites, determine whether all courses can be finished.
[Topological Sort]AdvancedDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Swiggy - Given a collection of intervals, merge all overlapping intervals.IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Amazon+3
- In a grid, cells are empty (0), fresh orange (1), or rotten (2). Each minute a rotten orange rots its 4-directional neighbours. Return the minimum minutes until no fresh orange remains, or -1 if impossible.IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Amazon
- Design and implement an LRU (Least Recently Used) cache in Python with O(1) get and put.IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Amazon
- Given meeting time intervals, find the minimum number of conference rooms required (Meeting Rooms II).IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Google
- 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 an m x n integer matrix, return the length of the longest strictly increasing path (moves are 4-directional).AdvancedDsa· coding₹499 (Pro plan required)Reported frequent at Google
- Given two strings word1 and word2, return the minimum number of insert, delete, or replace operations to convert word1 into word2 (Edit Distance).AdvancedDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Google
- Given an input string, reverse the order of the words (Reverse Words in a String).BeginnerDsa· codingFreeReported frequent at Microsoft
- Implement atoi: convert a string to a 32-bit signed integer, handling whitespace, sign, and overflow (String to Integer).IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Apple+1
- 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 an algorithm to serialize a binary tree to a string and deserialize it back.AdvancedDsa· coding₹499 (Pro plan required)Reported frequent at Microsoft
- Find the lowest common ancestor (LCA) of two given nodes in a binary tree.IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Flipkart+2
- Given n non-negative bar heights, compute how much rainwater can be trapped between them (Trapping Rain Water).AdvancedDsa· coding₹499 (Pro plan required)Reported frequent at Flipkart+1
- Given a string of '(', ')' and letters, remove the minimum number of parentheses to make it valid (Minimum Remove to Make Valid Parentheses).IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Meta
Page 1 / 3