Top 50 leetcode Interview Questions
The most frequently asked leetcode questions across all roles and companies, ranked by real interview frequency. Updated daily.
Find two array values that sum to a target using a hash map in O(n) time.
Booz Allen Hamilton
Vanguard
AscendionUse 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.
JPMorganChase
Crc Insurance Services
United AirlinesFind all unique triplets summing to zero using sorting and a two-pointer scan.
Cloudflare
PlangridCalculate the minimum rooms needed for overlapping Splunk meeting intervals using sorting and a min-heap.
Splunk
CompassCompress consecutive characters in place using read and write pointers with constant auxiliary space.
Infineon Technologies
AffirmCompute a sparse vector dot product efficiently by processing only nonzero entries.
Meta Platforms
AndurilUse a sliding window to find the longest contiguous Foundry event sequence with no repeated event type.
Palantir technologies
PalantirDDruvaSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Compare normalized character signatures to determine whether each pair of strings is an anagram.
AdobeCalculate the sum of integers from 1 to 1,000,000 using PostgreSQL aggregation and filtering.
Virtu Financial