ShahariarRabby / leetcode

Solutions of Leetcode problem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leetcode Solutions

The following table contains the problems with solutions:

Problem Category Solution
492. Construct the Rectangle Adhoc Solution
806. Number of Lines To Write String Adhoc Solution
48. Rotate Image Array Solution
66. Plus One Array Solution
189. Rotate Array Array Solution
283. Move Zeroes Array Solution
414. Third Maximum Number Array Solution
448. Find All Numbers Disappeared in an Array Array Solution
485. Max Consecutive Ones Array Solution
509. Fibonacci Number Array Solution
643. Maximum Average Subarray I Array Solution
832. Flipping an Image Array Solution
867. Transpose Matrix Array Solution
896. Monotonic Array Array Solution
905. Sort Array By Parity Array Solution
922. Sort Array By Parity II Array Solution
941. Valid Mountain Array Array Solution
985. Sum of Even Numbers After Queries Array Solution
999. Available Captures for Rook Array Solution
1051. Height Checker Array Solution
1089. Duplicate Zeros Array Solution
1200. Minimum Absolute Difference Array Solution
1252. Cells with Odd Values in a Matrix Array Solution
1295. Find Numbers with Even Number of Digits Array Solution
1299. Replace Elements with Greatest Element on Right Side Array Solution
1313. Decompress Run-Length Encoded List Array Solution
1331. Rank Transform of an Array Array Solution
1337. The K Weakest Rows in a Matrix Array Solution
1346. Check If N and Its Double Exist Array Solution
1351. Count Negative Numbers in a Sorted Matrix Array Solution
1385. Find the Distance Value Between Two Arrays Array Solution
1431. Kids With the Greatest Number of Candies Array Solution
1450. Number of Students Doing Homework at a Given Time Array Solution
1470. Shuffle the Array Array Solution
1476. Subrectangle Queries Array Solution
1480. Running Sum of 1d Array Array Solution
1534. Count Good Triplets Array Solution
1629. Slowest Key Array Solution
1672. Richest Customer Wealth Array Solution
1732. Find the Highest Altitude Array Solution
1742. Maximum Number of Balls in a Box Array Solution
1752. Check if Array Is Sorted and Rotated Array Solution
1773. Count Items Matching a Rule Array Solution
1833. Maximum Ice Cream Bars Array Solution
1863. Sum of All Subset XOR Totals Backtracking Solution
275. H-Index II Binary Search Solution
278. First Bad Version Binary Search Solution
367. Valid Perfect Square Binary Search Solution
374. Guess Number Higher or Lower Binary Search Solution
441. Arranging Coins Binary Search Solution
540. Single Element in a Sorted Array Binary Search Solution
704. Binary Search Binary Search Solution
852. Peak Index in a Mountain Array Binary Search Solution
342. Power of Four Bit Manipulation Solution
1720. Decode XORed Array Bit Manipulation Solution
225. Implement Stack using Queues Design Solution
232. Implement Queue using Stacks Design Solution
707. Design Linked List Design Solution
1286. Iterator for Combination Design Solution
1381. Design a Stack With Increment Operation Design Solution
1603. Design Parking System Design Solution
215. Kth Largest Element in an Array Divide and Conquer Solution
53. Maximum Subarray Dynamic Programming Solution
70. Climbing Stairs Dynamic Programming Solution
121. Best Time to Buy and Sell Stock Dynamic Programming Solution
746. Min Cost Climbing Stairs Dynamic Programming Solution
785. Is Graph Bipartite? Graph Solution
997. Find the Town Judge Graph Solution
455. Assign Cookies Greedy Solution
944. Delete Columns to Make Sorted Greedy Solution
1282. Group the People Given the Group Size They Belong To Greedy Solution
1518. Water Bottles Greedy Solution
1710. Maximum Units on a Truck Greedy Solution
1716. Calculate Money in Leetcode Bank Greedy Solution
1725. Number Of Rectangles That Can Form The Largest Square Greedy Solution
1736. Latest Time by Replacing Hidden Digits Greedy Solution
1774. Closest Dessert Cost Greedy Solution
1. Two Sum Hash Table Solution
36. Valid Sudoku Hash Table Solution
136. Single Number Hash Table Solution
169. Majority Element Hash Table Solution
202. Happy Number Hash Table Solution
242. Valid Anagram Hash Table Solution
350. Intersection of Two Arrays II Hash Table Solution
387. First Unique Character in a String Hash Table Solution
409. Longest Palindrome Hash Table Solution
705. Design HashSet Hash Table Solution
748. Shortest Completing Word Hash Table Solution
771. Jewels and Stones Hash Table Solution
811. Subdomain Visit Count Hash Table Solution
884. Uncommon Words from Two Sentences Hash Table Solution
961. N-Repeated Element in Size 2N Array Hash Table Solution
1002. Find Common Characters Hash Table Solution
1160. Find Words That Can Be Formed by Characters Hash Table Solution
1189. Maximum Number of Balloons Hash Table Solution
1207. Unique Number of Occurrences Hash Table Solution
1365. How Many Numbers Are Smaller Than the Current Number Hash Table Solution
1539. Kth Missing Positive Number Hash Table Solution
1512. Number of Good Pairs HashTable Solution
850. Rectangle Area II Line Sweep Solution
21. Merge Two Sorted Lists Linked List Solution
83. Remove Duplicates from Sorted List Linked List Solution
876. Middle of the Linked List Linked List Solution
1290. Convert Binary Number in a Linked List to Integer Linked List Solution
7. Reverse Integer Math Solution
223. Rectangle Area Math Solution
263. Ugly Number Math Solution
507. Perfect Number Math Solution
728. Self Dividing Numbers Math Solution
812. Largest Triangle Area Math Solution
836. Rectangle Overlap Math Solution
942. DI String Match Math Solution
970. Powerful Integers Math Solution
976. Largest Perimeter Triangle Math Solution
1232. Check If It Is a Straight Line Math Solution
1281. Subtract the Product and Sum of Digits of an Integer Math Solution
1317. Convert Integer to the Sum of Two No-Zero Integers Math Solution
1323. Maximum 69 Number Math Solution
1523. Count Odd Numbers in an Interval Range Math Solution
933. Number of Recent Calls Queue Solution
176. Second Highest Salary SQL Solution
182. Duplicate Emails SQL Solution
274. H-Index Sort Solution
969. Pancake Sorting Sort Solution
973. K Closest Points to Origin Sort Solution
977. Squares of a Sorted Array Sort Solution
1122. Relative Sort Array Sort Solution
1491. Average Salary Excluding the Minimum and Maximum Salary Sort Solution
1528. Shuffle String Sort Solution
20. Valid Parentheses Stack Solution
155. Min Stack Stack Solution
1021. Remove Outermost Parentheses Stack Solution
1047. Remove All Adjacent Duplicates In String Stack Solution
1441. Build an Array With Stack Operations Stack Solution
125. Valid Palindrome String Solution
520. Detect Capital String Solution
551. Student Attendance Record I String Solution
709. To Lower Case String Solution
804. Unique Morse Code Words String Solution
821. Shortest Distance to a Character String Solution
929. Unique Email Addresses String Solution
1108. Defanging an IP Address String Solution
1170. Compare Strings by Frequency of the Smallest Character String Solution
1436. Destination City String Solution
1496. Path Crossing String Solution
1525. Number of Good Ways to Split a String String Solution
1624. Largest Substring Between Two Equal Characters String Solution
1768. Merge Strings Alternately String Solution
1790. Check if One String Swap Can Make Strings Equal String Solution
1967. Number of Strings That Appear as Substrings in Word String Solution
2011. Final Value of Variable After Performing Operations String Solution
102. Binary Tree Level Order Traversal Tree Solution
590. N-ary Tree Postorder Traversal Tree Solution
617. Merge Two Binary Trees Tree Solution
637. Average of Levels in Binary Tree Tree Solution
700. Search in a Binary Search Tree Tree Solution
965. Univalued Binary Tree Tree Solution
11. Container With Most Water Two Pointers Solution
26. Remove Duplicates from Sorted Array Two Pointers Solution
27. Remove Element Two Pointers Solution
88. Merge Sorted Array Two Pointers Solution
344. Reverse String Two Pointers Solution

About

Solutions of Leetcode problem


Languages

Language:Python 93.5%Language:Java 2.4%Language:C++ 1.6%Language:C# 1.5%Language:Go 1.0%