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
12 questionsFree2Locked10
- 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 - Given a collection of intervals, merge all overlapping intervals.IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Amazon+3
- 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 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
- Given a string, determine if it can be a palindrome after deleting at most one character (Valid Palindrome II).IntermediateDsa· codingFreeReported frequent at Meta
- Given an array of integers and an integer k, return the total number of continuous subarrays whose sum equals k (Subarray Sum Equals K).IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Meta
- Given the root of a binary tree, return its vertical order traversal (LeetCode 987): group nodes by column from left to right, and within a column order nodes by row from top to bottom, breaking ties of the same row and column by smaller value first.IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Apple+1
- Given the root of a binary tree, return the length of its diameter (the longest path between any two nodes, measured in edges).IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)Reported frequent at Meta
- Meta OA: Given an array of integers, you need the length of the longest subarray whose elements sum to a target k. Which technique gives the optimal O(n) solution when values can be negative?AdvancedDsa· multiple choice₹99 (Interview Prep or Pro plan required)
- Meta OA: Which data structure most naturally implements an LRU (Least Recently Used) cache with O(1) get and put?IntermediateDsa· multiple choice₹99 (Interview Prep or Pro plan required)
- Insert a value into a sorted circular linked list when you are given a pointer to an arbitrary node (not necessarily the smallest); many inserts will follow.IntermediateDsa· coding₹99 (Interview Prep or Pro plan required)
- Merge three sorted arrays into one sorted array with no duplicate values, writing clean code.BeginnerDsa· codingFree