Collection of LeetCode questions to ace the coding interview!
Category | # | Title | Solution | Difficulty |
---|---|---|---|---|
Array | 1 | Two Sum | Java | Easy |
Array | 26 | Remove Duplicates from Sorted Array | Java | Easy |
Array | 36 | Valid Sudoku | Java | Medium |
Array | 66 | Plus One | Java | Easy |
Array | 122 | Best Time to Buy and Sell Stock II | Java | Medium |
Array | 136 | Single Number | Java | Easy |
Array | 189 | Rotate Array | Java | Medium |
Array | 217 | Contains Duplicate | Java | Easy |
Array | 283 | Move Zeroes | Java | Easy |
Array | 350 | Intersection of Two Arrays II | Java | Easy |
String | 7 | Reverse Integer | Java | Medium |
String | 14 | Longest Common Prefix | Java | Easy |
String | 125 | Valid Palindrome | Java | Easy |
String | 242 | Valid Anagram | Java | Easy |
String | 344 | Reverse String | Java | Easy |
String | 387 | First Unique Character in a String | Java | Easy |
Math | 13 | Roman to Integer | Java | Easy |
Math | 326 | Power of Three | Java | Easy |
Dynamic Progamming | 70 | Climbing stairs | Java | Easy |
Others | 20 | Valid Parentheses | Java | Easy |