Top 50 leetcode Interview Questions
The most frequently asked leetcode questions across all roles and companies, ranked by real interview frequency. Updated daily.
Move every zero to the array's end in place while preserving the relative order of all non-zero values.
Find all unique triplets summing to zero using sorting and a two-pointer scan.
Plangrid
CloudflareUse a stack to determine whether a client rule expression contains properly nested (), [], and {} brackets.
Phonepe
NetApp
DeloitteFind the longest binary subarray after flipping at most k zeros using a sliding window.
LinkedIn
AmazonFind the longest palindromic substring by expanding around every possible center in O(n²) time and O(1) space.
J.P. MorganAActolap SolutionsKKody TechnolabSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Use a sliding window and hash map to find the longest substring with no repeated characters in O(n) time.
Prime VideoTTestMu AIImplement a constant-time minimum stack and an amortized constant-time queue using two stacks.
Crc Insurance Services
United Airlines
RoundCircleCalculate the minimum rooms needed for overlapping Splunk meeting intervals using sorting and a min-heap.
Splunk
Compass