Skip to content

Commit 3da3e24

Browse files
committed
migrate cpp folder to leetkick format
1 parent de1440d commit 3da3e24

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2006
-518
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# LeetCode Practice Workspace
2+
3+
This workspace was created with [leetkick](https://github.com/charliesbot/leetkick) - a CLI tool for organizing LeetCode practice.
4+
5+
## Usage
6+
7+
### Fetch a new problem
8+
```bash
9+
leetkick fetch two-sum --language typescript
10+
```
11+
12+
### Run tests
13+
```bash
14+
leetkick test 1 --language typescript
15+
leetkick test two-sum --language typescript
16+
```
17+
18+
### Add a new language
19+
```bash
20+
leetkick add python
21+
```
22+
23+
## Commands
24+
25+
- `leetkick init` - Initialize empty workspace
26+
- `leetkick add <language>` - Add language workspace
27+
- `leetkick fetch <problem> --language <lang>` - Fetch problem
28+
- `leetkick test <problem> --language <lang>` - Run tests
29+
30+
Happy coding! 🚀

cpp/.clang-format

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
Language: Cpp
3+
BasedOnStyle: Google
4+
IndentWidth: 4
5+
TabWidth: 4
6+
UseTab: Never
7+
ColumnLimit: 100
8+
AccessModifierOffset: -2
9+
AlignAfterOpenBracket: Align
10+
AllowShortFunctionsOnASingleLine: Empty
11+
AllowShortIfStatementsOnASingleLine: false
12+
AllowShortLoopsOnASingleLine: false
13+
BreakBeforeBraces: Attach
14+
IndentCaseLabels: true
15+
SpaceAfterCStyleCast: false
16+
SpaceBeforeParens: ControlStatements
17+
Standard: c++17

cpp/.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Compiled binaries
2+
*.o
3+
*.exe
4+
test_runner
5+
a.out
6+
7+
# IDE files
8+
.vscode/
9+
.idea/
10+
*.swp
11+
*.swo
12+
13+
# OS files
14+
.DS_Store
15+
Thumbs.db

cpp/0001_two_sum/0001_two_sum.h

Lines changed: 0 additions & 24 deletions
This file was deleted.

cpp/0001_two_sum/0001_two_sum_test.cc

Lines changed: 0 additions & 15 deletions
This file was deleted.

cpp/0003_longest_substring_without_repeating_characters/0003_longest_substring_without_repeating_characters.h

Lines changed: 0 additions & 32 deletions
This file was deleted.

cpp/0003_longest_substring_without_repeating_characters/0003_longest_substring_without_repeating_characters_test.cc

Lines changed: 0 additions & 29 deletions
This file was deleted.

cpp/0007_reverse_integer/0007_reverse_integer.h

Lines changed: 0 additions & 28 deletions
This file was deleted.

cpp/0007_reverse_integer/0007_reverse_integer_test.cc

Lines changed: 0 additions & 30 deletions
This file was deleted.

cpp/0013_roman_to_integer/0013_roman_to_integer.h

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)