Skip to content

saltchang/leetcode

Repository files navigation

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