You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# Project 0 – Two Sum (C++)
2
2
3
+
## 📌 Overview
4
+
5
+
This repository contains the implementation of Project 0 for CS351, focusing on solving the Two Sum problem using both brute-force and optimized approaches.
6
+
7
+
The project demonstrates algorithmic thinking, performance comparison, and clean C++ project structure.
8
+
3
9
## 📌 Objective
4
10
The goal of this project is to implement and compare two different approaches to solve the classic "Two Sum" problem, focusing on algorithmic complexity and performance.
5
11
@@ -33,12 +39,13 @@ Given an array of integers `nums` and an integer `target`, return the indices of
33
39
## 📂 Project Structure
34
40
35
41
```
36
-
Project0/
42
+
11402_CS351_Project0/
37
43
│
38
-
├── include/ # Header files
39
44
├── src/ # Source code
45
+
├── include/ # Header files
40
46
├── tests/ # Unit tests
41
-
├── docs/ # Additional documentation
47
+
├── docs/ # Reports & documentation
48
+
├── .github/ # CI workflow
42
49
└── README.md
43
50
```
44
51
@@ -80,6 +87,7 @@ Project0/
80
87
81
88
## ▶️ How to Run
82
89
90
+
### Run unit tests
83
91
```bash
84
92
g++ -Iinclude src/twosum.cpp tests/test_twosum.cpp -o test
0 commit comments