S.No. | Title | Solutions | Time | Space | Difficulty | Related Topics | Companies |
---|---|---|---|---|---|---|---|
1 | Two Sum | Solution | O(n) | O(n) | Easy | Array, Hash Table |
Adobe, Airbnb, Amazon, Apple, Bloomberg, Dropbox, Facebook, Linkedin, Microsoft, Uber, Yahoo, Yelp |
2 | Add Two Numbers | Solution | O(n) | O(1) | Medium | Linked List, Math |
Adobe, Airbnb, Amazon, Bloomberg, Microsoft |
3 | Longest Substring Without Repeating Characters | Solution | O(n) | O(n) | Medium | Hash Table, Two Pointers, String |
|
9 | Palindrome Number | Solution | O(1) | O(1) | Easy | Math |
|
11 | Container With Most Water | Solution | O(n) | O(1) | Medium | Array, Two Pointers |
|
14 | Longest Common Prefix | Solution | O(n^2) | O(1) | Easy | String |
|
27 | Remove Element | Solution | O(n) | O(1) | Easy | Array, Two Pointers |
|
43 | Multiply Strings | Solution | O(1) | O(1) | Medium | Math, String |
|
50 | Pow(x, n) | Solution | O(logn) | O(1) | Medium | Math, Binary Search |
|
118 | Pascal's Triangle | Solution | O(n^2) | O(1) | Easy | Array |
|
119 | Pascal's Triangle II | Solution | O(n^2) | O(k) | Easy | Array |
|
121 | Best Time to Buy and Sell Stock | Solution | O(n) | O(1) | Easy | Array, Dynamic Programming |
|
167 | Two Sum II - Input array is sorted | Solution | O(n) | O(1) | Easy | Array, Two Pointers, Binary Search |
|
345 | Reverse Vowels of a String | Solution | O(n) | O(1) | Easy | Two Pointers, String |
|
566 | Reshape the Matrix | Solution | O(n) | O(n^2) | Easy | Array |
|
804 | Unique Morse Code Words | Solution | O(n^2) | O(n) | Easy | String |
|
832 | Flipping an Image | Solution | O(n^2) | O(1) | Easy | Array |
|
896 | Monotonic Array | Solution | O(n) | O(1) | Easy | Array |
|
929 | Unique Email Addresses | Solution | O(n) | O(n) | Easy | String |
|
babayigit2088 / leetcode-1 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from pratul1997/leetcode
Solution to LeetCode Problems in Python