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
- 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
- Koko Eating Bananas
- Anagram*
- Binary Tree Paths
- Missing Number
- Word Pattern
- Reverse In-Place
- Reverse Vowels
- Array Intersection
- Ransom Note
- First Unique Character
- Find the Difference
- Is Subsequence