Here is some leetcode solutions I made and get inspired by other elegant code. the order is basic to highly abstract.(easy to hard) And for each problem, I'll try different solution. this repo is LTS(long-term support).
These below are already solved:
- 206 reverse linked list
- 141 linked list cycle
- 21 merge two sorted list
- 19 remove nth node from end of list
- 876 middle of the linked list
- 20 valid parentheses
- 155 min stack
- 232 implement queue using stacks