/leetcode

A repository to track my leetcode solutions

Primary LanguageJava

LeetCode

My Leetcode Solutions

Leetcode Stats

# Title Solution Difficulty
2279 Maximum Bags With Full Capacity of Rocks Java Medium
2278 Percentage of Letter in String Java Easy
2269 Find the K-Beauty of a Number Python Easy
2053 Kth Distinct String in an Array Python Easy
1448 Count Good Nodes in Binary Tree Java Medium
1310 XOR Queries of a Subarray Java Medium
1046 Last Stone Weight Java Easy
994 Rotting Oranges Python Medium
973 K Closest Points to Origin Java Medium
985 Sum of Even Numbers After Queries Java Easy
981 TimeBased Key-Value Store Java Medium
905 Sort Array By Parity Java Easy
875 Koko Eating Bananas Medium
867 Transpose Matrix Easy
853 Car Fleet Java Medium
746 Min Cost Climbing Stairs Java Easy
739 Daily Temperatures Java Medium
704 Binary Search Easy
703 Kth Largest Element in a Stream Java Easy
695 Max Area of Island Python Medium
684 Redundant Connection Python Medium
647 Palindromic Substrings Python Medium
622 Design Circular Queue Medium
621 Task Scheduler Java Medium
581 Shortest Unsorted Continuous Subarray Easy
572 Subtree of Another Tre Java Easy
567 Permutation in String Java Medium
557 Reverse Words in a String III Easy
543 Diameter of Binary Tree Java Easy
424 Longest Repeating Character Replacement Medium
417 Pacific Atlantic Water Flow Python Medium
355 Design Twitter Java Medium
347 Top K Frequent Elements Java, Python Medium
326 Power of Three Easy
322 Coin Change Python Medium
304 Range Sum Query 2D - Immutable Medium
303 Range Sum Query - Immutable Easy
297 Serialize and Deserialize Binary Tree Java Hard
295 Find Median From Data Stream Java Hard
287 Find the Duplicate Number Java Medium
278 First Bad Version Easy
242 Valid Anagram Java Easy
239 Sliding Window Maximum Python Hard
238 Product of Array Except Self Java, Python Medium
235 Lowest Common Ancestor of a Binary Search Tree Java Medium
230 Kth Smallest Element in a BST Java, Python Medium
226 Invert Binary Tree Easy
219 Contains Duplicate II Easy
217 Contains Duplicate Easy
215 Kth Largest Element in an Array Java Medium
213 House Robber II Python Medium
212 Word Search II Java Hard
211 Design Add and Search Words Data Structure Java Medium
210 Course Schedule II Python Medium
208 Implement Trie (Prefix Tree) Java Medium
207 Course Schedule Python Medium
206 Reverse Linked List Java Easy
200 Number of Islands Python Medium
199 Binary Tree Right Side View Java Medium
198 House Robber Python Medium
167 Two Sum II - Input array is sorted 🔒 Medium
155 Min Stack Easy
153 Find Minimum in Rotated Sorted Array Java Medium
152 Maximum Product Subarray Python Medium
150 Evaluate Reverse Polish Notation Medium
146 LRU Cache Java Medium
143 Reorder List Java Medium
142 Linked List Cycle II Java Medium
141 Linked List Cycle Java Easy
138 Copy List with Random Pointer Java Medium
133 Clone Graph Python Medium
131 Palindrome Partitioning Java Medium
130 Surrounded Regions Python Medium
128 Longest Consecutive Sequence Java Medium
127 Word Ladder Python Hard
125 Valid Palindrome Easy
124 Binary Tree Maximum Path Sum Java Medium
121 Best Time to Buy and Sell Stock Java Medium
110 Balanced Binary Tree Java Easy
105 Construct Binary Tree from Preorder and Inorder Traversal Java Medium
104 Maximum Depth of Binary Tree Java Easy
102 Binary Tree Level Order Traversal Java Medium
100 Same Tree Java Easy
98 Validate Binary Search Tree Java Medium
94 Binary Tree Inorder Traversal Medium
91 Decode Ways Python Medium
90 Subsets II Java Medium
84 Largest Rectangle in Histogram Java Hard
80 Remove Duplicates from Sorted Array II Java Medium
79 Word Search Java Medium
78 Subsets Java Medium
76 Minimum Window Substring Java, Python Hard
74 Search a 2D Matrix Medium
73 Set Matrix Zeroes Medium
70 Climbing Stairs Java Easy
53 Maximum Subarray Medium
51 N-Queens Python Hard
49 Group Anagrams Java Medium
46 Permutations Java Medium
42 Trapping Rain Water Java Hard
40 Combination Sum II Java Medium
36 Combination Sum Java Medium
36 Valid Sudoku Easy
33 Search in Rotated Sorted Array Java Medium
28 Find the Index of the First Occurrence in a String Python Easy
27 Remove Element Java Easy
26 Remove Duplicates from Sorted Array Java Easy
25 Reverse Nodes in k-Group Java Hard
23 Merge k Sorted Lists Java Hard
22 Generate Parenthesis Java Medium
21 Merge Two Sorted Lists Easy
20 Valid Parentheses Easy
19 Remove Nth Node From End of List Java Medium
17 Letter Combinations of a Phone Number Python Medium
16 3Sum Closest Java Medium
15 3Sum Python Medium
14 Longest Common Prefix Python Easy
13 Roman to Integer Python Easy
12 Integer to Roman Python Medium
11 Container With Most Water Java, Python Medium
9 Palindrome Number Python Easy
8 String to Integer (atoi) Python Easy
7 Reverse Integer Python Easy
6 ZigZag Conversion Python Easy
5 Longest Palindromic Substring Python Medium
4 Median of Two Sorted Arrays Java, Python Hard
3 Longest Substring Without Repeating Characters Java Medium
2 Add Two Numbers Java Medium
1 Two Sum Java, Python Easy