Top 50
Topic roadmap
Updated weekly · Last refresh Nov 2

Top 50 Greedy Interview Questions

The most frequently asked Greedy questions across all roles and companies, ranked by real interview frequency. Updated daily.

50questions
~21htotal time
331companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
Hash TablesStart here. 7 questions · ~175 min
Design an LRU CacheEasy
Practice
Recently asked

Implement an LRU cache in O(1) average time using a hash table and doubly linked list.

Hash TablesQueueLinked ListsAllianzICFInsulet
Sliding Window API Rate LimiterMedium
Practice
Recently asked

Implement a per-user sliding window rate limiter that accepts or rejects requests in O(1) amortized time.

Hash TablesQueueGreedyTwilioPatreonClickUp
More Hash Tables questions with a free account
2
Dynamic Programming8 questions · ~200 min
Maximum Sum Contiguous SubarrayEasy
Practice
Recently asked

Use Kadane's algorithm to find the contiguous subarray with the largest sum in linear time.

Dynamic ProgrammingArraysGreedyMetaPublicis GroupeSmbc Global Foundation
More Dynamic Programming questions with a free account

Sign up to see every question

Create a free account to unlock this list and practice real interview questions.

Get my prep plan
3
Arrays9 questions · ~225 min
Find Second Largest in ArrayEasy
Practice
Recently asked

Scan the array once to track the largest and second largest distinct values in O(n) time.

ArraysSortingGreedySparta globalAMD Construction GroupIIBM Business Services
Merge Overlapping Time RangesEasy
Practice
Recently asked

Merge overlapping intervals by sorting time ranges and scanning once to build the minimal non-overlapping result.

ArraysSortingGreedyMetaEversanaNavihealth
More Arrays questions with a free account
4
Math6 questions · ~150 min
Find Missing Number in RangeEasy
Practice
Recently asked

Use arithmetic to find the missing number in an array containing distinct values from 0 to n.

MathArraysGreedyBBCGAir FranceLogicMonitor
Implement K-Means ClusteringMedium
Practice

Implement K-means from scratch with centroid initialization, iterative assignment/update steps, and convergence checks.

MathArraysGreedyByteDanceScry AIHugging Face
More Math questions with a free account
5
Queue4 questions · ~100 min
Secure Token Bucket Rate LimiterHard
Practice
Recently asked

Implement a token bucket rate limiter that safely validates signed requests and enforces per-key limits in O(1) average time.

QueueMathGreedyMetaFukuNetDocuments
More Queue questions with a free account
6
Searching4 questions · ~100 min
More Searching questions with a free account
7
More topics12 questions · ~300 min
More questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.