Skip to content

Latest commit

 

History

History
executable file
·
112 lines (108 loc) · 30 KB

README.md

File metadata and controls

executable file
·
112 lines (108 loc) · 30 KB

leetcode-again

My solutions to LeetCode Problems. Sounds banal I know.

But I wanted to capture the solutions a little more formally.

Also most "famous" Leetcode solutions' repos are C++ and Python based and I prefer Java these days, so this is different in a way.

# Title My Solution LeetCode Solution Difficulty
832 Flipping an Image My Java Solution LeetCode Solution Easy
771 Jewels and Stones My Java Solution LeetCode Solution Easy
804 Unique Morse Code Words My Java Solution LeetCode Solution Easy
657 Judge Route Circle My Java Solution LeetCode Solution Easy
561 Array Partition 1 My Java Solution LeetCode Solution Easy
728 Self Dividing Numbers My Java Solution LeetCode Solution Easy
617 Merge Two Binary Trees My Java Solution LeetCode Solution Easy
654 Maximum Binary Trees My Java Solution LeetCode Solution Medium
807 Max Increase To Keep City Skyline My Java Solution LeetCode Solution Medium
566 Reshape The Matrix My Java Solution LeetCode Solution Easy
852 Peak Index In a Mountain Array My Java Solution LeetCode Solution Easy
811 Subdomain Visit Count My Java Solution LeetCode Solution Easy
620 Not Boring Movies My SQL Solution LeetCode Solution Easy
682 Baseball Game My Java Solution LeetCode Solution Easy
821 Shortest Distance To A Character My Java Solution LeetCode Solution Easy
500 Keyboard Row My Java Solution LeetCode Solution Easy
876 Middle of The Linked List My Java Solution LeetCode Solution Easy
141 Linked List Cycle My Java Solution LeetCode Solution Easy
890 Find And Replace Pattern My Java Solution LeetCode Solution Medium
884 Uncommon Words From Two Sentences My Java Solution LeetCode Solution Easy
412 FizzBuzz My Java Solution LeetCode Solution Easy
520 Detect Capital My Java Solution LeetCode Solution Easy
888 Fair Candy Swap My Java Solution LeetCode Solution Easy
496 Next Greater Element My Java Solution LeetCode Solution Easy
559 Maximum Depth Of N-ary tree My Java Solution LeetCode Solution Easy
690 Employee Importance My Java Solution LeetCode Solution Easy
724 Find Pivot Index My Java Solution LeetCode Solution Easy
827 Leaf Similar Trees My Java Solution LeetCode Solution Easy
575 Distribute Candies My Java Solution LeetCode Solution Easy
572 Sub Tree of Another Tree My Java Solution LeetCode Solution Easy
110 Balanced Binary Tree My Java Solution LeetCode Solution Easy
111 Minimum Depth of Binary Tree My Java Solution LeetCode Solution Easy
162 Find Peak Element My Java Solution LeetCode Solution Medium
733 Flood Fill My Java Solution LeetCode Solution Medium
112 Path Sum My Java Solution LeetCode Solution Medium
590 N-Ary Tree Postorder Traversal My Java Solution LeetCode Solution Easy
589 N-Ary Tree Preorder Traversal My Java Solution LeetCode Solution Easy
144 Binary Tree Preorder Traversal My Java Solution LeetCode Solution Medium
841 Keys And Rooms My Java Solution LeetCode Solution Medium
785 Is Graph Bipartite My Java Solution LeetCode Solution Medium
207 Course Schedule My Java Solution LeetCode Solution Medium
210 Course Schedule II My Java Solution LeetCode Solution Medium
20 Valid Parentheses My Java Solution LeetCode Solution Easy
102 Binary Tree Level Order Traversal My Java Solution LeetCode Solution Medium
637 Average of Levels in Binary Tree My Java Solution LeetCode Solution Medium
538 Convert BST to greater Tree My Java Solution LeetCode Solution Medium
860 Lemonade Change My Java Solution LeetCode Solution Medium
122 Best Time to Buy and Sell Stock II My Java Solution LeetCode Solution Easy
563 Binary Tree Tilt My Java Solution LeetCode Solution Easy
455 Assign Cookies My Java Solution LeetCode Solution Easy
684 Redundant Connection My Java Solution LeetCode Solution Medium
547 Friend Circles My Java Solution LeetCode Solution Medium
788 Rotated Digits My Java Solution LeetCode Solution Medium
268 Missing Number My Java Solution LeetCode Solution Easy
763 Partition Labels My Java Solution LeetCode Solution Medium
21 Merge Two Sorted Lists My Java Solution LeetCode Solution Easy
70 Climbing Stairs My Java Solution LeetCode Solution Easy
892 Surface Area of 3D Shapes My Java Solution LeetCode Solution Easy
154 Find Minimum In A Rotated Sorted Array II My Java Solution LeetCode Solution Hard
703 Kth Largest Element In A Stream My Java Solution LeetCode Solution Easy
406 Queue Reconstruction By Height My Java Solution LeetCode Solution Medium
392 Is Subsequence My Java Solution LeetCode Solution Medium
136 Single Number My Java Solution LeetCode Solution Easy
905 Sort Array By Parity My Java Solution LeetCode Solution Easy
258 Add Digits My Java Solution LeetCode Solution Easy
171 Excel Sheet Column Number My Java Solution LeetCode Solution Easy
231 Power Of Two My Java Solution LeetCode Solution Easy
168 Excel Sheet Column Title My Java Solution LeetCode Solution Easy
342 Power Of Four My Java Solution LeetCode Solution Easy
198 House Robber My Java Solution LeetCode Solution Easy
605 Can Place Flowers My Java Solution LeetCode Solution Easy
213 House Robber II My Java Solution LeetCode Solution Medium
453 Minimum Moves To Equal Array Elements My Java Solution LeetCode Solution Easy
415 Add Strings My Java Solution LeetCode Solution Easy
762 Prime Number of Set Bits In A Binary Representation My Java Solution LeetCode Solution Easy
693 Binary Number with alternating bits My Java Solution LeetCode Solution Easy
206 Reverse Linked List My Java Solution LeetCode Solution Easy
383 Ransom Note My Java Solution LeetCode Solution Easy
167 Two Sum II My Java Solution LeetCode Solution Easy
775 Global And Local Inversions My Java Solution LeetCode Solution Easy
66 Plus One My Java Solution LeetCode Solution Easy
155 Min Stack My Java Solution LeetCode Solution Easy
160 Intersection Of two Linked Lists My Java Solution LeetCode Solution Easy
929 Unique Email Addresses My Java Solution LeetCode Solution Easy
938 Range Sum of BST My Java Solution LeetCode Solution Easy
1021 Remove Outermost Parentheses My Java Solution LeetCode Solution Easy
965 Univalued Binary Tree My Java Solution LeetCode Solution Easy
908 Smallest Range I My Java Solution LeetCode Solution Easy
557 Reverse Words in a String III My Java Solution LeetCode Solution Easy
1022 Sum of Root To Leaf Binary Numbers My Java Solution LeetCode Solution Easy
226 Invert Binary Tree My Java Solution LeetCode Solution Easy
98 Validate Binary Search Tree My Java Solution LeetCode Solution Medium
451 Sort Characters By Frequency My Java Solution LeetCode Solution Medium
387 First Unique Character In a String My Java Solution LeetCode Solution Easy
100 Same Tree My Java Solution LeetCode Solution Easy
806 Number of Lines To Write String My Java Solution LeetCode Solution Easy
463 Island Perimeter My Java Solution LeetCode Solution Easy
993 Cousins In Binary Tree My Java Solution LeetCode Solution Easy
107 Binary Tree Level Order Traversal II My Java Solution LeetCode Solution Easy
653 Two Sum IV - Input Is BST My Java Solution LeetCode Solution Easy
108 Convert Sorted Array to Binary Search Tree My Java Solution LeetCode Solution Easy
101 Symmetric Tree My Java Solution LeetCode Solution Easy