Selected LeetCode problems for CS2113

The following problems will be used as a bank from which we select code for debugging quizzes.

Some of these problems will be ones we cover in class and/or worksheets.

They are all classified as “easy” on LeetCode.

Arrays

  1. Two Sum
  2. Longest Common Prefix
  3. Remove Duplicates from Sorted
  4. Remove Element
  5. Search Insert Position
  6. Plus One
  7. Merge Sorted
  8. Appears Once
  9. Contains Duplicate
  10. Contains Duplicate plus Index
  11. Summary Ranges
  12. Missing Number
  13. Move Zeroes End
  14. Array Intersection
  15. Third Max
  16. Flowerbeds
  17. Image Smoother
  18. Flood Fill
  19. Shortest Distance to Character
  20. Flip Image
  21. Unique Emails
  22. Duplicate Zeroes
  23. Minimum Absolute Difference
  24. Number Unique Occurences