saltchang / leetcode

Just LeetCode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript  Go  C++  Progress  License

Problems

⭐ Starred Problems are highly recommended.

# Title Solutions Difficulty Note Starred
0001 Two Sum TS, Go [Easy] πŸ“ ⭐
0003 Longest Substring Without Repeating Characters TS [Medium] πŸ“ ⭐
0014 Longest Common Prefix C++ [Easy] πŸ“
0019 Remove Nth Node From End of List C++ [Medium] πŸ“ ⭐
0038 Count and Say C++ [Medium] πŸ“
0041 First Missing Positive TS [Hard] πŸ“
0070 Climbing Stairs Go [Easy] πŸ“ ⭐
0098 Validate Binary Search Tree TS, C++ [Medium] πŸ“ ⭐
0102 Binary Tree Level Order Traversal C++ [Medium] πŸ“ ⭐
0104 Maximum Depth of Binary Tree TS, C++ [Easy] πŸ“ ⭐
0105 Construct Binary Tree from Preorder and Inorder Traversal TS [Medium] πŸ“ ⭐
0118 Pascal's Triangle C++ [Easy] πŸ“
0125 Valid Palindrome C++ [Easy] πŸ“ ⭐
0147 Insertion Sort List C++ [Medium] πŸ“
0206 Reverse Linked List Go [Easy] πŸ“ ⭐
0387 First Unique Character in a String C++ [Easy] πŸ“

☝️ Back to Problems

Run Test

TypeScript

First, install the packages:

yarn

Test all problems:

yarn test --verbose false

Test a single problem:

yarn test --verbose false problems/0001

See Jest CLI Options for more information.

Go

Test all problems:

go test ./problems/**/go -v

Test a single problem:

go test ./problems/0001/go -v

Contributors

ccHSU13 saltchang

About

Just LeetCode.

License:MIT License


Languages

Language:TypeScript 41.7%Language:C++ 32.1%Language:Go 16.1%Language:JavaScript 10.1%