Solution for problems in leetcode.com
You can star and fork this repository on GitHub by navigating at the top of this repository.
When you’re on the main page of a repository, you’ll see a button to "Star" and “Fork” the repository on the upper right-hand side of the page, underneath your user icon.
If working on an issue, comment first that you are working on it and then send out the pull request.
#<problem_number>/<programming_language>/<file_name>
Example
#200/java/Solution.java
#<problem_number>/<programming_language>/<approach_algorithm_name>/<file_name>
Example
#354/java/dfs/Solution.java
#354/java/union_find/Solution.java
#354/kotlin/dfs/Solution.kt
#354/kotlin/union_find/Solution.kt
Example
/**
* https://leetcode.com/problems/gas-station/
*/
class Solution { .... }
Note: the algorithm name (if multiple words) follows snake case.
runtime beat %
and memory usage beats %
provided by leetcode after submission of the code.Example
/**
* https://leetcode.com/problems/gas-station/
* runtime beats 45.76% of Java submissions
* memory usage beats 77.23% of Java submissions
*/
class Solution { .... }
hacktoberfest
tag while you can send out PR without waiting.