LeetCode Question with Detailed Answers
The following table are the LeetCode questions that I have been solved.
View By Level View By Topic View By Number
Problem Menu
No. | Question Number | Question | Level | Topic | Date |
---|---|---|---|---|---|
1 | 46 | Permutations | Medium | Backtracking | 2021-04-29 |
2 | 5 | Longest Palindromic Substring | Medium | DP | 2021-01-24 |
3 | 4 | Median of Two Sorted Arrays | Hard | Binary Search | 2021-01-23 |
4 | 3 | Longest Substring Without Repeating Characters | Medium | Two Pointers | 2021-01-22 |
5 | 2 | Add Two Numbers | Medium | Linked List | 2021-01-21 |
6 | 1 | Two Sum | Easy | Hash Table | 2021-01-20 |
7 | 1290 | Convert Binary Number in a Linked List to Integer | Easy | Bit Manipulation | 2020-11-01 |
8 | 252 | Meeting Rooms | Easy | Greedy | 2020-10-31 |
9 | 253 | Meeting Rooms II | Medium | Greedy | 2020-10-30 |
10 | 213 | House Robber II | Medium | DP | 2020-10-14 |
11 | 21 | Merge Two Sorted Lists | Easy | Linked List | 2020-10-13 |
12 | 1616 | Split Two Strings to Make Palindrome | Medium | Greedy | 2020-10-13 |
13 | 859 | Buddy Strings | Easy | String | 2020-10-12 |
14 | 449 | Serialize and Deserialize BST | Medium | Tree | 2020-10-11 |
15 | 1081 | Smallest Subsequence of Distinct Characters | Medium | Greedy | 2020-10-10 |
16 | 316 | Remove Duplicate Letters | Medium | Greedy | 2020-10-09 |
17 | 704 | Binary Search | Easy | Binary Search | 2020-10-08 |
18 | 61 | Rotate List | Medium | Linked List | 2020-10-07 |
19 | 701 | Insert into a Binary Search Tree | Medium | Tree | 2020-10-06 |
20 | 1009 | Complement of Base 10 Integer | Easy | Bit Manipulation | 2020-10-05 |
21 | 39 | Combination Sum | Medium | Backtracking | 2020-10-04 |
22 | 476 | Number Complement | Easy | Bit Manipulation | 2020-10-03 |
23 | 170 | Two Sum III - Data structure design | Easy | Hash Table | 2020-10-02 |
24 | 452 | Minimum Number of Arrows to Burst Balloons | Medium | Greedy | 2020-10-01 |
25 | 148 | Sort List | Medium | Linked List | 2020-09-30 |
26 | 198 | House Robber | Easy | DP | 2020-09-29 |
27 | 949 | Largest Time for Given Digits | Easy | Math | 2020-09-01 |
28 | 518 | Coin Change 2 | Medium | DP | 2020-06-07 |
29 | 406 | Queue Reconstruction by Height | Medium | Greedy | 2020-06-06 |
30 | 1472 | Design Browser History | Medium | Design | 2020-06-06 |
31 | 1471 | The k Strongest Values in an Array | Medium | Array | 2020-06-06 |
32 | 1470 | Shuffle the Array | Easy | Array | 2020-06-06 |
33 | 528 | Random Pick with Weight | Medium | Binary Search | 2020-06-05 |
34 | 344 | Reverse String | Easy | Two Pointers | 2020-06-04 |
35 | 1029 | Two City Scheduling | Easy | Greedy | 2020-06-03 |
36 | 965 | Univalued Binary Tree | Easy | Tree | 2020-06-02 |
37 | 237 | Delete Node in a Linked List | Easy | Linked List | 2020-06-02 |
38 | 226 | Invert Binary Tree | Easy | Tree | 2020-06-01 |
39 | 72 | Edit Distance | Hard | DP | 2020-05-31 |
40 | 1466 | Reorder Routes to Make All Paths Lead to the City Zero | Medium | Tree | 2020-05-31 |
41 | 1465 | Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts | Medium | Array | 2020-05-31 |
42 | 1464 | Maximum Product of Two Elements in an Array | Easy | Array | 2020-05-31 |
43 | 973 | K Closest Points to Origin | Medium | Sort | 2020-05-30 |
44 | 260 | Single Number III | Medium | Bit Manipulation | 2020-05-30 |
45 | 207 | Course Schedule | Medium | Topological Sort | 2020-05-29 |
46 | 137 | Single Number II | Medium | Bit Manipulation | 2020-05-29 |
47 | 136 | Single Number | Easy | Bit Manipulation | 2020-05-29 |
48 | 338 | Counting Bits | Medium | Bit Manipulation | 2020-05-28 |
49 | 231 | Power of Two | Easy | Bit Manipulation | 2020-05-28 |
50 | 191 | Number of 1 Bits | Easy | Bit Manipulation | 2020-05-28 |
51 | 190 | Reverse Bits | Easy | Bit Manipulation | 2020-05-28 |
52 | 886 | Possible Bipartition | Medium | Graph | 2020-05-27 |
53 | 785 | Is Graph Bipartite? | Medium | Graph | 2020-05-27 |
54 | 525 | Contiguous Array | Medium | Hash Table | 2020-05-26 |
55 | 325 | Maximum Size Subarray Sum Equals k | Medium | Hash Table | 2020-05-26 |
56 | 1143 | Longest Common Subsequence | Medium | DP | 2020-05-25 |
57 | 1035 | Uncrossed Lines | Medium | DP | 2020-05-25 |
58 | 266 | Palindrome Permutation | Easy | Hash Table | 2020-05-24 |
59 | 1008 | Construct Binary Search Tree from Preorder Traversal | Medium | Tree | 2020-05-24 |
60 | 986 | Interval List Intersections | Medium | Two Pointers | 2020-05-23 |
61 | 1458 | Max Dot Product of Two Subsequences | Hard | DP | 2020-05-23 |
62 | 1457 | Pseudo-Palindromic Paths in a Binary Tree | Medium | Tree | 2020-05-23 |
63 | 1456 | Maximum Number of Vowels in a Substring of Given Length | Medium | Sliding Window | 2020-05-23 |
64 | 1455 | Check If a Word Occurs As a Prefix of Any Word in a Sentence | Easy | String | 2020-05-23 |
65 | 451 | Sort Characters By Frequency | Medium | Hash Table | 2020-05-22 |
66 | 221 | Maximal Square | Medium | DP | 2020-05-21 |
67 | 1277 | Count Square Submatrices with All Ones | Medium | DP | 2020-05-21 |
68 | 230 | Kth Smallest Element in a BST | Medium | Binary Search | 2020-05-20 |
69 | 901 | Online Stock Span | Medium | Stack | 2020-05-19 |
70 | 567 | Permutation in String | Medium | Hash Table | 2020-05-18 |
71 | 438 | Find All Anagrams in a String | Medium | Hash Table | 2020-05-17 |
72 | 328 | Odd Even Linked List | Medium | Linked List | 2020-05-16 |
73 | 1452 | People Whose List of Favorite Companies Is Not a Subset of Another List | Medium | String | 2020-05-16 |
74 | 1451 | Rearrange Words in a Sentence | Medium | String | 2020-05-16 |
75 | 1450 | Number of Students Doing Homework at a Given Time | Easy | Array | 2020-05-16 |
76 | 121 | Best Time to Buy and Sell Stock | Easy | DP | 2020-05-16 |
77 | 918 | Maximum Sum Circular Subarray | Medium | Array | 2020-05-15 |
78 | 53 | Maximum Subarray | Easy | DP | 2020-05-15 |
79 | 208 | Implement Trie (Prefix Tree) | Medium | Trie | 2020-05-14 |
80 | 402 | Remove K Digits | Medium | Stack | 2020-05-13 |
81 | 540 | Single Element in a Sorted Array | Medium | Binary Search | 2020-05-12 |