Skip to content

PW486/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ““ LeetCode

LeetCode Problems' Solutions

# Title Solution Difficulty
1314 Matrix Block Sum C++ Medium
1277 Count Square Submatrices with All Ones C++ Medium
1255 Maximum Score Words Formed by Letters C++ Hard
1179 Reformat Department Table MySQL Easy
1161 Maximum Level Sum of a Binary Tree C++ Medium
1046 Last Stone Weight C++ Easy
1043 Partition Array for Maximum Sum C++ Medium
1039 Minimum Score Triangulation of Polygon C++ Medium
1025 Divisor Game C++ Easy
961 N-Repeated Element in Size 2N Array C++ Easy
938 Range Sum of BST C++ Easy
922 Sort Array By Parity II C++ Easy
905 Sort Array By Parity C++ Easy
841 Keys and Rooms C++ Medium
771 Jewels and Stones C++ Easy
739 Daily Temperatures C++ Medium
701 Insert into a Binary Search Tree C++ Medium
654 Maximum Binary Tree C++ Medium
647 Palindromic Substrings C++ Medium
627 Swap Salary MySQL Easy
626 Exchange Seats MySQL Medium
620 Not Boring Movies MySQL Easy
617 Merge Two Binary Trees C++ Easy
612 Task Scheduler C++ Medium
601 Human Traffic of Stadium MySQL Hard
596 Classes More Than 5 Students MySQL Easy
595 Big Countries MySQL Easy
560 Subarray Sum Equals K C++ Medium
543 Diameter of Binary Tree C++ Easy
494 Target Sum C++ Medium
486 Predict the Winner C++ Medium
476 Number Complement C++ Easy
461 Hamming Distance C++ Easy
454 4Sum II C++ Medium
448 Find All Numbers Disappeared in an Array C++ Easy
437 Path Sum III C++ Easy
416 Partition Equal Subset Sum C++ Medium
415 Add Strings C++ Easy
412 Fizz Buzz C++ Easy
406 Queue Reconstruction by Height C++ Medium
395 Longest Substring with At Least K Repeating Characters C++ Medium
394 Decode String C++ Medium
387 First Unique Character in a String C++ Easy
384 Shuffle an Array C++ Medium
378 Kth Smallest Element in a Sorted Matrix C++ Medium
371 Sum of Two Integers C++ Easy
350 Intersection of Two Arrays II C++ Easy
347 Top K Frequent Elements C++ Medium
344 Reverse String C++ Easy
341 Flatten Nested List Iterator C++ Medium
338 Counting Bits C++ Medium
337 House Robber III C++ Medium
328 Odd Even Linked List C++ Medium
312 Burst Balloons C++ Hard
309 Best Time to Buy and Sell Stock with Cooldown C++ Medium
297 Serialize and Deserialize Binary Tree C++ Hard
289 Game of Life C++ Medium
287 Find the Duplicate Number C++ Medium
283 Move Zeroes C++ Easy
279 Perfect Squares C++ Medium
268 Missing Number C++ Easy
262 Trips and Users MySQL Hard
242 Valid Anagram C++ Easy
240 Search a 2D Matrix II C++ Medium
238 Product of Array Except Self C++ Medium
237 Delete Node in a Linked List C++ Easy
232 Implement Queue using Stacks C++ Easy
230 Kth Smallest Element in a BST C++ Medium
226 Invert Binary Tree C++ Easy
225 Implement Stack using Queues C++ Easy
217 Contains Duplicate C++ Easy
215 Kth Largest Element in an Array C++ Medium
208 Implement Trie (Prefix Tree) C++ Medium
206 Reverse Linked List C++ Easy
202 Happy Number C++ Easy
200 Number of Islands C++ Medium
197 Rising Temperature MySQL Easy
196 Delete Duplicate Emails MySQL Easy
191 Number of 1 Bits C++ Easy
185 Department Top Three Salaries MySQL Hard
184 Department Highest Salary MySQL Medium
183 Customers Who Never Order MySQL Easy
182 Duplicate Emails MySQL Easy
181 Employees Earning More Than Their Managers MySQL Easy
180 Consecutive Numbers MySQL Medium
178 Rank Scores MySQL Medium
177 Nth Highest Salary MySQL Medium
176 Second Highest Salary MySQL Easy
175 Combine Two Tables MySQL Easy
171 Excel Sheet Column Number C++ Easy
169 Majority Element C++ Easy
136 Single Number C++ Easy
128 Longest Consecutive Sequence C++ Hard
122 Best Time to Buy and Sell Stock II C++ Easy
121 Best Time to Buy and Sell Stock C++ Easy
118 Pascal's Triangle C++ Easy
114 Flatten Binary Tree to Linked List C++ Medium
108 Convert Sorted Array to Binary Search Tree C++ Easy
105 Construct Binary Tree from Preorder and Inorder Traversal C++ Medium
104 Maximum Depth of Binary Tree C++ Easy
102 Binary Tree Level Order Traversal C++ Medium
101 Symmetric Tree C++ Easy
96 Unique Binary Search Trees C++ Medium
94 Binary Tree Inorder Traversal C++ Medium
78 Subsets C++ Medium
75 Sort Colors C++ Medium
70 Climbing Stairs C++ Easy
64 Minimum Path Sum C++ Medium
62 Unique Paths C++ Medium
57 Insert Interval C++ Hard
56 Merge Intervals C++ Medium
53 Maximum Subarray C++ Easy
49 Group Anagrams C++ Medium
48 Rotate Image C++ Medium
46 Permutations C++ Medium
42 Trapping Rain Water C++ Hard
39 Combination Sum C++ Medium
36 Valid Sudoku C++ Medium
22 Generate Parentheses C++ Medium
21 Merge Two Sorted Lists C++ Easy
17 Letter Combinations of a Phone Number C++ Medium
13 Roman to Integer C++ Easy
11 Container With Most Water C++ Medium
10 Regular Expression Matching C++ Hard
9 Palindrome Number C++ Easy
8 String to Integer (atoi) C++ Medium
7 Reverse Integer C++ Easy
6 ZigZag Conversion C++ Medium
5 Longest Palindromic Substring C++ Medium
4 Median of Two Sorted Arrays C++ Hard
3 Longest Substring Without Repeating Characters C++ Medium
2 Add Two Numbers C++ Medium
1 Two Sum C++ Easy

Releases

No releases published

Packages

No packages published