Back to Problems
greedy Interview Questions
46 machine-learning interview questions on greedy.
Practice on the problems board →Minimum Cost Over 0/1/! Subsequence Assignments
Coding & Leetcode-style QuestionsLexicographically Minimal String via Remove-and-Reinsert Increment
Coding & Leetcode-style QuestionsMax Coins with Tokens Moving Along a Line
Coding & Leetcode-style QuestionsK Shuttle Pickup Locations (k-Median under L1)
ML Fundamentals & AlgorithmsReach Target via Add / Double / Halve
Coding & Leetcode-style QuestionsDrone Delivery on a Hub Ring — Minimum Travel
Coding & Leetcode-style QuestionsLongest Consecutive Sequence with Adjacent Gap At Most K
Coding & Leetcode-style QuestionsDetermine Passing Order and Ranking
Coding & Leetcode-style QuestionsLexicographically Largest Sequence via State Flips
Coding & Leetcode-style QuestionsMinimum Add to Make Parentheses Valid
Coding & Leetcode-style QuestionsMinimum Range-Add Ops to Make Array Non-Decreasing
Coding & Leetcode-style QuestionsVM Inventory Rental Revenue — Heap Simulation
Coding & Leetcode-style QuestionsMinimum Replacements to Make Array Contiguous
Coding & Leetcode-style QuestionsBest Time to Buy and Sell Stock
Coding & Leetcode-style QuestionsMaximum Number of Eaten Apples
Coding & Leetcode-style QuestionsContainer With Most Water
Coding & Leetcode-style QuestionsBeautify Houses to Strictly Monotone
Coding & Leetcode-style QuestionsAssign Chefs to Dishes to Maximize Profit
Coding & Leetcode-style QuestionsBatch Sorted Timepoints Under Capacity and Time Window
Coding & Leetcode-style QuestionsMaximize the Minimized Three-Server Difficulty Split
Coding & Leetcode-style QuestionsLongest Increasing Subarray with One Modification
Coding & Leetcode-style QuestionsGrid Flower Placement
Coding & Leetcode-style QuestionsLongest-Match Greedy Tokenization with Dictionary ID Replacement
Coding & Leetcode-style QuestionsMinimum Cars to Satisfy Rental Requests
Coding & Leetcode-style QuestionsGolden Chain Split After Removing One Link
Coding & Leetcode-style QuestionsMeeting Rooms: Minimum Rooms to Hold All Meetings
Coding & Leetcode-style QuestionsMove Chess Pieces on a 1D Board to Match Target
Coding & Leetcode-style QuestionsMinimum Racks to Pack Machines (2D Bin Packing)
Coding & Leetcode-style QuestionsMax Subset of Two-Digit Numbers With No Shared Digit
Coding & Leetcode-style QuestionsBalanced Permutation Prefix Check
Coding & Leetcode-style QuestionsMeeting Rooms: Can One Person Attend All
Coding & Leetcode-style QuestionsBest Time to Buy and Sell Stock
Coding & Leetcode-style QuestionsMerge Intervals
Coding & Leetcode-style QuestionsPhone Battery Discharge Scheduling in Cyclic Order
Coding & Leetcode-style QuestionsFind the Closest Palindrome
Coding & Leetcode-style QuestionsMaximize Distance to Closest Person
Coding & Leetcode-style QuestionsMinimum Coins to Pay With Change
Coding & Leetcode-style QuestionsMaximum Number of Events That Can Be Attended
Coding & Leetcode-style QuestionsSingle Query Type, Max Revenue in K Minutes
Coding & Leetcode-style QuestionsMaximize Pipeline Throughput Within Budget
Coding & Leetcode-style QuestionsSeat Assignment (Exam Room without leave)
Coding & Leetcode-style QuestionsZero Array Transformation with Range Queries
Coding & Leetcode-style QuestionsMinimum Operations to Reduce N to Zero (±2^i)
Coding & Leetcode-style QuestionsMaximum Items by Budget with Prefix Sums
Coding & Leetcode-style QuestionsPermutation Prefix Balanced Subarray Check
Coding & Leetcode-style QuestionsStairs vs Elevator Energy Trade-off
Coding & Leetcode-style Questions