leetcode solutions (Javascript)
带*表示待修改
# | Title | Solution | Difficulty |
---|---|---|---|
1 | Two Sum | solution | Easy |
2 | Add Two Numbers | solution | Medium |
3 | Longest Substring Without Repeating Characters | solution | Medium |
4* | Median of Two Sorted Arrays | solution | Hard |
7 | Reverse Integer | solution | Easy |
53 | Maximum Subarray | solution | Easy |
70 | Submission Details | solution | Easy |
104 | Maximum Depth of Binary Tree | solution | Easy |
121 | Best Time to Buy and Sell Stock | solution | Easy |
122 | Best Time to Buy and Sell Stock II | solution | Easy |
136 | Single Number | solution | Easy |
169 | Majority Element | solution | Easy |
171 | Excel Sheet Column Number | solution | Easy |
202 | Submission Details | [solution](https://github.com/Fareeha666/leetcode/blob/master/202- Happy-Number.js) | Easy |
217 | Contains Duplicate | solution | Easy |
237 | Delete Node in a Linked List | solution | Easy |
242 | Valid Anagram | solution | Easy |
283 | Move Zeroes | solution | Easy |
344 | Reverse String | solution | Easy |
387 | First Unique Character in a String | solution | Easy |
412 | Fizz Buzz | solution | Easy |
476 | Number Complement | solution | Easy |