Archie Lu
4 years ago
commit
7c50651035
6 changed files with 119 additions and 0 deletions
@ -0,0 +1,4 @@ |
|||||
|
--- |
||||
|
BasedOnStyle: Microsoft |
||||
|
TabWidth: 2 |
||||
|
IndentWidth: 2 |
@ -0,0 +1,32 @@ |
|||||
|
# Prerequisites |
||||
|
*.d |
||||
|
|
||||
|
# Compiled Object files |
||||
|
*.slo |
||||
|
*.lo |
||||
|
*.o |
||||
|
*.obj |
||||
|
|
||||
|
# Precompiled Headers |
||||
|
*.gch |
||||
|
*.pch |
||||
|
|
||||
|
# Compiled Dynamic libraries |
||||
|
*.so |
||||
|
*.dylib |
||||
|
*.dll |
||||
|
|
||||
|
# Fortran module files |
||||
|
*.mod |
||||
|
*.smod |
||||
|
|
||||
|
# Compiled Static libraries |
||||
|
*.lai |
||||
|
*.la |
||||
|
*.a |
||||
|
*.lib |
||||
|
|
||||
|
# Executables |
||||
|
*.exe |
||||
|
*.out |
||||
|
*.app |
@ -0,0 +1,29 @@ |
|||||
|
{ |
||||
|
// Use IntelliSense to learn about possible attributes. |
||||
|
// Hover to view descriptions of existing attributes. |
||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
||||
|
"version": "0.2.0", |
||||
|
"configurations": [ |
||||
|
{ |
||||
|
"name": "g++ - Build and debug active file", |
||||
|
"type": "cppdbg", |
||||
|
"request": "launch", |
||||
|
"program": "${fileDirname}/${fileBasenameNoExtension}.out", |
||||
|
"args": [], |
||||
|
"stopAtEntry": false, |
||||
|
"cwd": "${workspaceFolder}", |
||||
|
"environment": [], |
||||
|
"externalConsole": false, |
||||
|
"MIMode": "gdb", |
||||
|
"setupCommands": [ |
||||
|
{ |
||||
|
"description": "Enable pretty-printing for gdb", |
||||
|
"text": "-enable-pretty-printing", |
||||
|
"ignoreFailures": true |
||||
|
} |
||||
|
], |
||||
|
"preLaunchTask": "C/C++: g++ build active file", |
||||
|
"miDebuggerPath": "/usr/bin/gdb" |
||||
|
} |
||||
|
] |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
{ |
||||
|
"tasks": [ |
||||
|
{ |
||||
|
"type": "shell", |
||||
|
"label": "C/C++: g++ build active file", |
||||
|
"command": "/usr/bin/g++", |
||||
|
"args": [ |
||||
|
"-g", |
||||
|
"${file}", |
||||
|
"-o", |
||||
|
"${fileDirname}/${fileBasenameNoExtension}.out" |
||||
|
], |
||||
|
"options": { |
||||
|
"cwd": "${workspaceFolder}" |
||||
|
}, |
||||
|
"problemMatcher": [ |
||||
|
"$gcc" |
||||
|
], |
||||
|
"group": { |
||||
|
"kind": "build", |
||||
|
"isDefault": true |
||||
|
} |
||||
|
} |
||||
|
], |
||||
|
"version": "2.0.0" |
||||
|
} |
@ -0,0 +1,10 @@ |
|||||
|
#include "common.hpp" |
||||
|
|
||||
|
class Solution |
||||
|
{ |
||||
|
}; |
||||
|
|
||||
|
int main(int argc, const char **argv) |
||||
|
{ |
||||
|
return 0; |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
#include <bits/stdc++.h> |
||||
|
|
||||
|
using namespace std; |
||||
|
|
||||
|
struct TreeNode { |
||||
|
int val; |
||||
|
TreeNode *left; |
||||
|
TreeNode *right; |
||||
|
TreeNode() : val(0), left(nullptr), right(nullptr) {} |
||||
|
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} |
||||
|
TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {} |
||||
|
}; |
||||
|
|
||||
|
struct ListNode { |
||||
|
int val; |
||||
|
ListNode *next; |
||||
|
ListNode(int x) : val(x), next(NULL) {} |
||||
|
}; |
Loading…
Reference in new issue