Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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) |