Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zacharybear/leetcode-solutions
A repository shows solutions for leetcode algorithm questions.
https://github.com/zacharybear/leetcode-solutions
Last synced: about 1 month ago
JSON representation
A repository shows solutions for leetcode algorithm questions.
- Host: GitHub
- URL: https://github.com/zacharybear/leetcode-solutions
- Owner: ZacharyBear
- Created: 2024-06-03T09:26:48.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-04T09:25:10.000Z (8 months ago)
- Last Synced: 2024-11-15T09:49:41.770Z (3 months ago)
- Language: Java
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LeetCode Solutions
This repository provided solutions for algorithm problems on [LeetCode](https://leetcode.cn/problemset/).
# Prerequisite
Enable your personal computer has installed [Java](https://www.oracle.com/hk/java/technologies/downloads/)(JDK 1.8 or
later) and [Maven](https://maven.apache.org/download.cgi)# Quick start
- You can search the problem in this page(leetcode number or title), there's a table listed all problems and linked to
the sourcecode.
- To run the code in your PC, you can choose an IDE supports debugging with JUnit, such
as [IDEA](https://www.jetbrains.com/idea/download/) or [VSCode](https://code.visualstudio.com/download)...
Each solution has corresponding test code, you could execute them to show the result convenient.
- You can also paste the code on LeetCode's editor.# Solutions
> Click the title to explore problem description on LeetCode.
| Number | Title | Actions | Test |
|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------|-------------------------------------------------------------------------|
| 17 | [Letter Combinations of a Phone Number](https://leetcode.cn/problems/letter-combinations-of-a-phone-number/) | [View](src/main/java/cn/zenkie/solution/LetterCombinations.java) | ✅ [View](src/test/java/cn/zenkie/solution/LetterCombinationsTest.java) |
| 22 | [Generate Parentheses](https://leetcode.cn/problems/generate-parentheses/) | [View](src/main/java/cn/zenkie/solution/GenerateParenthesis.java) | ✅ [View](src/test/java/cn/zenkie/solution/GenerateParenthesisTest.java) |
| 46 | [Permutations](https://leetcode.cn/problems/permutations/) | [View](src/main/java/cn/zenkie/solution/Permute.java) | ✅ [View](src/test/java/cn/zenkie/solution/PermuteTest.java) |
| 70 | [Climbing Stairs](https://leetcode.cn/problems/climbing-stairs/) | [View](src/main/java/cn/zenkie/solution/ClimbingStairs.java) | ✅ [View](src/test/java/cn/zenkie/solution/ClimbingStairsTest.java) |
| 300 | [Longest Increasing Subsequence](https://leetcode.cn/problems/longest-increasing-subsequence/) | [View](src/main/java/cn/zenkie/solution/LengthOfLIS.java) | ✅ [View](src/test/java/cn/zenkie/solution/LengthOfLISTest.java) |
| 1103 | [Distribute Candies to People](https://leetcode.cn/problems/distribute-candies-to-people/) | [View](src/main/java/cn/zenkie/solution/DistributeCandies2.java) | ✅ [View](src/test/java/cn/zenkie/solution/DistributeCandies2Test.java) |