Welcome to my LeetCodeProblems repository! This repository serves as a log for my solutions to various LeetCode problems. Here, you'll find a collection of my coding solutions, explanations, and any additional notes I have gathered along the way. I hope you find this repository helpful and insightful!
LeetCodeProblems is a personal repository created to keep track of my solutions to LeetCode coding problems. As I explore and solve these problems, I strive to improve my problem-solving skills, algorithms, and data structures knowledge. This repository helps me document my progress and provides a reference for future learning.
In this repository, you will find a collection of markdown files, each corresponding to a specific LeetCode problem. Each file contains the following information:
No. | Question | Difficulty | Solution |
---|---|---|---|
7 | Reverse Integer | Medium | Solution Link |
14 | Longest Common Prefix | Medium | Solution Link |
26 | Remove Duplicates from Sorted Array | Easy | Solution Link |
58 | Length of Last Word | Easy | Solution Link |
69 | Sqrt(x) | Easy | Solution Link |
100 | Same Tree | Easy | Solution Link |
102 | Binary Tree Level Order Traversal | Medium | Solution Link |
103 | Binary Tree Zigzag Level Order Traversal | Medium | Solution Link |
104 | Maximum Depth of Binary Tree | Easy | Solution Link |
105 | Construct Binary Tree from Preorder and Inorder Traversal | Medium | Solution Link |
107 | Binary Tree Level Order Traversal II | Medium | Solution Link |
114 | Flatten Binary Tree to Linked List | Medium | Solution Link |
121 | Best Time to Buy and Sell Stock | Easy | Solution Link |
125 | Valid Palindrome | Easy | Solution Link |
136 | Single Number | Easy | Solution Link |
141 | Linked List Cycle | Easy | Solution Link |
151 | Reverse Words in a String | Medium | Solution Link |
199 | Binary Tree Right Side View | Medium | Solution Link |
206 | Reverse Linked List | Easy | Solution Link |
222 | Count Complete Tree Nodes | Medium | Solution Link |
230 | 230. Kth Smallest Element in a BST | Medium | Solution Link |
238 | Product of Array Except Self | Medium | Solution Link |
268 | Missing Number | Easy | Solution Link |
283 | Move Zeroes | Easy | Solution Link |
334 | Increasing Triplet Subsequence | Medium | Solution Link |
345 | Reverse Vowels of a String | Easy | Solution Link |
371 | Sum of Two Integers | Medium | Solution Link |
392 | Is Subsequence | Easy | Solution Link |
450 | Delete Node in a BST | Medium | Solution Link |
485 | Max Consecutive Ones | Easy | Solution Link |
509 | Fibonacci Number | Easy | Solution Link |
543 | Diameter of Binary Tree | Easy | Solution Link |
605 | Can Place Flowers | Easy | Solution Link |
637 | Average of Levels in Binary Tree | Easy | Solution Link |
700 | Search in a Binary Search Tree | Easy | Solution Link |
701 | Insert into a Binary Search Tree | Medium | Solution Link |
704 | Binary Search | Easy | Solution Link |
724 | Find Pivot Index | Easy | Solution Link |
852 | Peak Index in a Mountain Array | Medium | Solution Link |
938 | Range Sum of BST | Easy | Solution Link |
977 | Squares of a Sorted Array | Easy | Solution Link |
1071 | Greatest Common Divisor of Strings | Easy | Solution Link |
1431 | Kids With the Greatest Number of Candies | Easy | Solution Link |
1480 | Running Sum of 1d Array | Easy | Solution Link |
1491 | Average Salary Excluding the Minimum and Maximum Salary | Easy | Solution Link |
1492 | The kth Factor of n | Medium | Solution Link |
1679 | Max Number of K-Sum Pairs | Medium | Solution Link |
1732 | Find the Highest Altitude | Easy | Solution Link |
1768 | Merge Strings Alternately | Easy | Solution Link |
1822 | Sign of the Product of an Array | Easy | Solution Link |
1827 | Minimum Operations to Make the Array Increasing | Easy | Solution Link |
2095 | Delete the Middle Node of a Linked List | Medium | Solution Link |
2390 | Removing Stars From a String | Medium | Solution Link |
Feel free to explore the solutions, browse through the code, and gain insights into various problem-solving techniques!
While this repository primarily serves as my personal log, I welcome contributions and feedback. If you have a more optimal solution or additional insights for any of the problems, please feel free to open an issue or submit a pull request. Together, we can make this repository a valuable resource for everyone!
This repository is licensed under the MIT License. Feel free to fork, modify, and use the code in this repository for your own learning purposes.
Happy coding and solving LeetCode problems!