Skip to content

Commit 0fa1e77

Browse files
author
aarliu
committed
created new files for shuati
1 parent b0c6af7 commit 0fa1e77

File tree

5 files changed

+100
-0
lines changed

5 files changed

+100
-0
lines changed

.gitignore

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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)

TwoPointers/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
include_directories(.)
3+
4+
add_executable(TwoSum LC1TwoSum.cpp)

TwoPointers/LC1TwoSum.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
}

main.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
}

0 commit comments

Comments
 (0)