Solutions of selected LeetCode problems in Scala 3.
- Learn Scala 3 :)
- Practise Algorithm :)
- Try to be compact and readable at the same time
- Try Scala 3 syntax and features but with less Scala specific libraries
- Solutions are organized into topics, following the same grouping as LeetCode
- Topics are further divided into categories
- Solutions in each Topic/Category are ordered by difficulty level
- Solutions with more explanation are bold
- Problems grouped into series, each series has a common setting but different constraints.
- Different data structures and algorithms could be used to handle these constraints accordingly.
Series | Problem List |
---|---|
My Calendar | |
Contains Duplicate | |
Valid Palindrome | |
Next Greater Element | |
Course Schedule | |
Best Time to Buy and Sell Stock |