knaxuslearn · build · ship

Greedy

Take the best choice right now, once you can show it never hurts later. 395 problems from 44 companies, most widely asked first. Tick them off as you go; your ticks stay in this browser.

problems
395
hard
85
done
0

395 of 395 problems

  1. 1Container With Most Water (opens LeetCode in a new tab)Array, Two Pointers, GreedyMedium24companies
  2. 2Meeting Rooms II (opens LeetCode in a new tab)Array, Two Pointers, GreedyMedium20companies
  3. 3Jump Game (opens LeetCode in a new tab)Array, Dynamic Programming, GreedyMedium17companies
  4. 4Jump Game II (opens LeetCode in a new tab)Array, Dynamic Programming, GreedyMedium17companies
  5. 5Candy (opens LeetCode in a new tab)Array, GreedyHard14companies
  6. 6Task Scheduler (opens LeetCode in a new tab)Array, Hash Table, GreedyMedium14companies
  7. 7Best Time to Buy and Sell Stock II (opens LeetCode in a new tab)Array, Dynamic Programming, GreedyMedium13companies
  8. 8Gas Station (opens LeetCode in a new tab)Array, GreedyMedium13companies
  9. 9Maximum Number of Events That Can Be Attended (opens LeetCode in a new tab)Array, Greedy, SortingMedium13companies
  10. 10Largest Number (opens LeetCode in a new tab)Array, String, GreedyMedium12companies
  11. 11Non-overlapping Intervals (opens LeetCode in a new tab)Array, Dynamic Programming, GreedyMedium12companies
  12. 12Remove K Digits (opens LeetCode in a new tab)String, Stack, GreedyMedium12companies
  13. 13Reorganize String (opens LeetCode in a new tab)Hash Table, String, GreedyMedium12companies
  14. 14Can Place Flowers (opens LeetCode in a new tab)Array, GreedyEasy11companies
  15. 15Split Array Largest Sum (opens LeetCode in a new tab)Array, Binary Search, Dynamic ProgrammingHard11companies
  16. 16Valid Parenthesis String (opens LeetCode in a new tab)String, Dynamic Programming, StackMedium11companies
  17. 17Wildcard Matching (opens LeetCode in a new tab)String, Dynamic Programming, GreedyHard10companies
  18. 18Boats to Save People (opens LeetCode in a new tab)Array, Two Pointers, GreedyMedium9companies
  19. 19Put Marbles in Bags (opens LeetCode in a new tab)Array, Greedy, SortingHard9companies
  20. 20Valid Palindrome II (opens LeetCode in a new tab)Two Pointers, String, GreedyEasy9companies
  21. 21Best Time to Buy and Sell Stock with Transaction Fee (opens LeetCode in a new tab)Array, Dynamic Programming, GreedyMedium8companies
  22. 22Frequency of the Most Frequent Element (opens LeetCode in a new tab)Array, Binary Search, GreedyMedium8companies
  23. 23Maximum Swap (opens LeetCode in a new tab)Math, GreedyMedium8companies
  24. 24Maximum Units on a Truck (opens LeetCode in a new tab)Array, Greedy, SortingEasy8companies
  25. 25Rearranging Fruits (opens LeetCode in a new tab)Array, Hash Table, GreedyHard8companies
  26. Showing 25 of 395

"Companies" counts the companies in DSA Atlas that have asked the problem at any time. Patterns and data structures come from LeetCode topic tags. Your ticks are saved in this browser only, and shared with the company pages.

Credits

These lists are the work of two open GitHub projects. Thank you to their authors.

Problem text stays on LeetCode; we link to it. Frequencies are relative within a company.

Last synced