β 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] | π |
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.
Test all problems:
go test ./problems/**/go -v
Test a single problem:
go test ./problems/0001/go -v