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
- Two Sum
- Longest Common Prefix
- Remove Duplicates from Sorted
- Remove Element
- Search Insert Position
- Plus One
- Merge Sorted
- Appears Once
- Contains Duplicate
- Contains Duplicate plus Index
- Summary Ranges
- Missing Number
- Move Zeroes End
- Array Intersection
- Third Max
- Flowerbeds
- Image Smoother
- Flood Fill
- Shortest Distance to Character
- Flip Image
- Unique Emails
- Duplicate Zeroes
- Minimum Absolute Difference
- Number Unique Occurences