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.

Problems with asterisks are ones we have already completed in lecture/lab.

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
  25. Koko Eating Bananas
  26. Anagram*
  27. Binary Tree Paths
  28. Missing Number
  29. Word Pattern
  30. Reverse In-Place
  31. Reverse Vowels
  32. Array Intersection
  33. Ransom Note
  34. First Unique Character
  35. Find the Difference
  36. Is Subsequence