DSA Learning Lab

Hi everyone👋. I hope this repo helps you. This repo contains my DSA learnings—mostly LeetCode solution code with explanations. If you want more details on specific concepts, visit my blog where I write daily about DSA topics. Check it out here 👉 click here


📚 Table of Contents


Arrays

An array is a collection of elements of the same data type stored in contiguous memory locations. Read more Also you can watch my youtube video for further clarification: video explanation

Array Problems

  1. Build Array from Permutation
  2. Concatenation of Array
  3. Running Sum of 1d Array
  4. Range Sum Query - Immutable
  5. Range Sum Query 2D - Immutable
  6. Number of Good Pairs
  7. Shuffle the Array
  8. Check IF N and It’s Double Exists
  9. Search Insert Position

For a comprehensive list of array problems organized by difficulty and concepts, check out: Arrays LeetCode Problems List


Strings

String Problems

  1. 3. Longest Substring Without Repeating Characters - Medium
  2. 125. Valid Palindrome - Easy
  3. 242. Valid Anagram - Easy
  4. 344. Reverse String - Easy
  5. 387. First Unique Character in a String - Easy
  6. 1112. Find Words That Can Be Formed by Characters - Easy

Math & Numbers

Math and Number Problems

  1. 53. Maximum Subarray - Easy
  2. 152. Maximum Product Subarray - Medium
  3. 202. Happy Number - Easy
  4. 643. Maximum Average Subarray I - Easy

Other Problems

Miscellaneous Problems

  1. 1205. Defanging an IP Address - Easy
  2. 1651. Shuffle String - Easy
  3. 1797. Goal Parser Interpretation - Easy
  4. 2219. Maximum Number of Words Found in Sentences - Easy
  5. 383. Ransom Note - Easy

Resources

Learning Materials


🤝 Contributing

Contributions are welcome! If you’d like to contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/NewSolution)
  3. Commit your changes (git commit -m 'Add new solution')
  4. Push to the branch (git push origin feature/NewSolution)
  5. Open a Pull Request

Contribution Ideas:

⭐ Show Your Support

If you find this repository helpful:

📫 Connect With Me

📄 License

This project is open source and available under the MIT License.