File tree Expand file tree Collapse file tree 5 files changed +100
-0
lines changed Expand file tree Collapse file tree 5 files changed +100
-0
lines changed Original file line number Diff line number Diff line change
1
+ # User-specific stuff
2
+ .idea /*
3
+
4
+ # CMake
5
+ cmake-build- * /
6
+
7
+ # Mongo Explorer plugin
8
+ .idea /** /mongoSettings.xml
9
+
10
+ # File-based project format
11
+ * .iws
12
+
13
+ # IntelliJ
14
+ out /
15
+
16
+ # C++ ================================
17
+ Prerequisites
18
+ * .d
19
+
20
+ # Compiled Object files
21
+ * .slo
22
+ * .lo
23
+ * .o
24
+ * .obj
25
+
26
+ # Precompiled Headers
27
+ * .gch
28
+ * .pch
29
+
30
+ # Compiled Dynamic libraries
31
+ * .so
32
+ * .dylib
33
+ * .dll
34
+
35
+ # Fortran module files
36
+ * .mod
37
+ * .smod
38
+
39
+ # Compiled Static libraries
40
+ * .lai
41
+ * .la
42
+ * .a
43
+ * .lib
44
+
45
+ # Executables
46
+ * .exe
47
+ * .out
48
+ * .app
49
+
50
+ # CMake ================================
51
+ bin /
52
+ build /
53
+ CMakeLists.txt.user
54
+ CMakeCache.txt
55
+ CMakeFiles
56
+ CMakeScripts
57
+ Testing
58
+ Makefile
59
+ cmake_install.cmake
60
+ install_manifest.txt
61
+ compile_commands.json
62
+ CTestTestfile.cmake
Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.15 )
2
+ project (AlgoInCpp )
3
+
4
+ set (CMAKE_CXX_STANDARD 11 )
5
+ ADD_SUBDIRECTORY (TwoPointers )
6
+
7
+ add_executable (AlgoInCpp main.cpp )
Original file line number Diff line number Diff line change
1
+
2
+ include_directories (. )
3
+
4
+ add_executable (TwoSum LC1TwoSum.cpp )
Original file line number Diff line number Diff line change
1
+ //
2
+ // Created by aarliu on 11/28/19.
3
+ //
4
+ #include < iostream>
5
+ #include < vector>
6
+
7
+ using namespace std ;
8
+
9
+ class LC1TwoSum {
10
+ public:
11
+ vector<int > twoSum (vector<int >& nums, int target) {
12
+ vector<int > result;
13
+ return result;
14
+ }
15
+ };
16
+
17
+ int main () {
18
+ std::cout << " Hello, World in two sum!" << std::endl;
19
+ return 0 ;
20
+ }
Original file line number Diff line number Diff line change
1
+ #include < iostream>
2
+ using namespace std ;
3
+
4
+ int main () {
5
+ std::cout << " Hello, World in top folder!" << std::endl;
6
+ return 0 ;
7
+ }
You can’t perform that action at this time.
0 commit comments