This is a repository of my Leetcode solutions. I will update this repo once I solve a problem.
I might categorize these problems by their types in the future.
This repo is written in C++ (before 2018) and C# (Updated 2022).
- Header
common.hdefines some regular libraries that will be used in each problem, such as map, vector container from STL. main.cppis the entry of all those solution. For each problem, include relevantq[prob number].hfile intomain.cpp. You can also handle input and output inside this main file.- To compile, just simply execute
g++ main.cpp. - Note: some C# solutions were added after I have been working at Microsoft. Sorry I just got used to C# and need more time to switch my mind back to C++ TAT...
- 3
- 20
- 21
- 24
- 26
- 27
- 33
- 53
- 54
- 56
- 66
- 75
- 79
- 80
- 88
- 91
- 94
- 98
- 102
- 103
- 104
- 114
- 116
- 119
- 121
- 136
- 138
- 141
- 142
- 151
- 162
- 168
- 171
- 173
- 186
- 191
- 204
- 206
- 208
- 215
- 226
- 235
- 237
- 258
- 263
- 268
- 283
- 292
- 338
- 344
- 348
- 371
- 387
- 389
- 468
- 561
- 563
- 650
- 651