Skip to content

Harsh-o4/leetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

LeetCode Solutions

Solutions for all the leetcode questions I solved.
Runtime and memory usage is mentioned at the top of each program.

Easy | Medium

List of questions attempted:

Easy

# Title LeetCode Link
1 Two Sum Attempt
9 Palindrome Number Attempt
26 Remove Duplicate from Sorted Array Attempt
27 Remove Element Attempt
28 Find the Index of the First Occurrence in a String Attempt
58 Length of last word Attempt
66 Plus One Attempt
69 Sqrt(x) Attempt
83 Remove duplicates from sorted list Attempt
121 Best Time to Buy and Sell Stock Attempt
125 Valid palindrome Attempt
141 Linked List Cycle Attempt
160 Intersection of Two Linked Lists Attempt
169 Majority Element Attempt
191 Number of 1 Bits Attempt
202 Happy Number Attempt
217 Contains Duplicate Attempt
242 Valid Anagram Attempt
258 Add Digits Attempt
263 Ugly Number Attempt
268 Missing Number Attempt
344 Reverse String Attempt
367 Valid Perfect Square Attempt
412 Fizz Buzz Attempt
441 Arranging Coins Attempt
461 Hamming Distance Attempt
704 Binary Search Attempt
709 To Lower Case Attempt
747 Largest Number At Least Twice of Others Attempt
977 Squares of Sorted Array Attempt
1051 Height Checker Attempt
1108 Defanging an IP Address Attempt
1207 Unique Number of Occurrences Attempt
1221 Split a String in Balanced Strings Attempt
1431 Kids With the Greatest Number of Candies Attempt
1470 Shuffle the Array Attempt
1475 Final Prices With a Special Discount in a Shop Attempt
1480 Running Sum of 1d Array Attempt
1489 XOR Operation in an Array Attempt
1512 Number of Good Pairs Attempt
1572 Matrix Diagonal Sum Attempt
1672 Richest Customer Wealth Attempt
1752 Check if Array Is Sorted and Rotated Attempt
1790 Check if One String Swap Can Make Strings Equal Attempt
1800 Maximum Ascending Subarray Sum Attempt
1929 Concatenation of Array Attempt
2114 Maximum Number of Words Found in Sentences Attempt
2220 Minimum Bit Flips to Convert Number Attempt
2235 Add Two Integers Attempt
2413 Smallest Even Multiple Attempt
2469 Convert the Temperature Attempt
2798 Number of Employees Who Met the Target Attempt
2828 Check if a String Is an Acronym of Words Attempt
2894 Divisible and Non-divisible Sums Difference Attempt
3105 Longest Strictly Increasing or Strictly Decreasing Subarray Attempt
3110 Score of a String Attempt
3151 Special Array I Attempt
3168 Minimum Number of Chairs in a Waiting Room Attempt
3174 Clear Digits Attempt

⬆️Back to top

Medium

# Title LeetCode Link
7 Reverse Integer Attempt
29 Divide Two Integers Attempt
61 Rotate List Attempt
74 Search a 2D Matrix Attempt
1726 Tuple with Same Product Attempt
1910 Remove All Occurrences of a Substring Attempt
2364 Count Number of Bad Pairs Attempt
2938 Separate Black and White Balls Attempt

⬆️Back to top

About

Solutions for Leetcode problems

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published