A repository of my curated and optimized Java solutions to LeetCode problems.
Dive into patterns, algorithms, time-space complexity, and clean code snippets. 👨💻
This repository contains my Java-based solutions to LeetCode problems. Each solution provides:
- 🧠 Problem Statement (Linked to LeetCode)
- 💻 Java Implementation (Structured & Commented)
- 📉 Time & Space Complexity
- 🧩 Topic Tags (e.g., Arrays, Graphs, Trees)
🧠 Topic | ✅ Problems |
---|---|
📦 Arrays | 80+ |
🔗 Linked List | 15+ |
🌳 Trees | 10+ |
🌐 Graphs | 5 |
🧮 Others (Strings, DP…) | 50+ |
🧾 Total | 186 |
Contributions are welcome! ✨
Help make this repository even better by adding more optimized or alternative solutions.
-
Fork this repository.
-
Clone your forked repo to your local machine:
git clone https://github.com/GokulakrishnanSivalingam/leetcode.git
# Clone the repo
git clone https://github.com/GokulakrishnanSivalingam/leetcode.git
cd leetcode
# Compile and run a file
javac TwoSum.java
java TwoSum
This project is licensed under the MIT License.
MIT License
Copyright (c) 2025 Gokulakrishnan S
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: