Coding problems · by difficulty

17 easy coding problems, solved step by step.

Where to start: problems with one key idea each, solved first the obvious way and then the way an interviewer hopes to see. Each one is solved in 22 languages from brute force to optimal, with code you can run on the page.

0/17 solved
  1. Two SumEasy
  2. Valid ParenthesesEasy
  3. Contains DuplicateEasy
  4. Valid AnagramEasy
  5. Valid PalindromeEasy
  6. Best Time to Buy and Sell StockEasy
  7. Longest Common PrefixEasy
  8. Reverse a Linked ListEasy
  9. Invert a Binary TreeEasy
  10. Climbing StairsEasy
  11. Single NumberEasy
  12. Counting BitsEasy
  13. Missing NumberEasy
  14. Roman to IntegerEasy
  15. Majority ElementEasy
  16. Maximum Depth of a Binary TreeEasy
  17. Merge Two Sorted ListsEasy