Skip to content

The Unique LeetCode Repo having Optimized java solutions

Notifications You must be signed in to change notification settings

GG-Satya/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

  • This repository is a collection of my gists (Working & Accepted ✅ code snippets passing all test cases on the LeetCode online platform) solutions in the absolutely fantastic language, my favorite i.e Java.

  • My Leetcode Profile🔗

  • This speciality of this repo is , each folder 📂 has a specific Leetcode problem, The folder name itself indicates an LeetCode problem. These folders has two files in it i.e Question.txt 🗒️& Solution.java 🗒️. These file names clarifies the contents inside it.

  • The Commit message defines the date when that particular problem was asked in Daily LeetCode Challenge.

  • Hence, the solutions won't directly execute on your local IDE or compiler, the main() would need to be written and the solution's function would need to be invoked with appropriate inputs/test cases to run in standalone.

To Search Any Problem : Just hit the "/" and paste your problem string, like this :

Screenshot_new

Notes:

  • Sometimes, multiple solutions/approaches have been provided with relevant comments in the solution file, these are being continuously updated as and when I find a more optimized solution.
  • The solutions also succinctly encompasses years of Java industry programming experience and care has been taken to optimize even at the slightest visible portions of the code.
  • The code in this repo is completely original content and written by me. If you like what you see, don't forget to show your liking by ⭐ing this repo.

How to contribute?

  1. Fork the repository 🍴
  2. Do the desired changes (add/delete/modify) ✏️
  3. Make a pull request :shipit:

When should you contribute?

  • If your solution's time complexity ⏰ is better than the solution already present or,
  • If your solution's space complexity 💾 is better than the solution already present or,
  • If your solution is of the same time and space complexity but is more concise 📃. In this case, comment out the original solution & make a pull request with your solution or,
  • If your solution is of the same time and space complexity but is easier/more readable 📄 to understand or,
  • If you use the same solution as present in the main branch and have gone the extra mile to add short comments 📝 explaining what's happening or what's the rationale at that particular code line, wherever necessary. 🙏

About

The Unique LeetCode Repo having Optimized java solutions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages