Skip to content

Commit b1a3c3c

Browse files
Merge pull request #1 from cormacpayne/master
Updating the repository
2 parents 42ab035 + 863f897 commit b1a3c3c

21 files changed

+309
-436
lines changed

Notes/Graph-Theory.md

-269
This file was deleted.

README.md

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Competitive Programming
1+
# Data Structures and Algorithms
22

33
## Introduction
44

@@ -28,20 +28,22 @@ Below are books that I recommend reading if you are interested in learning more
2828

2929
### Getting Started
3030

31-
- [Introduction to Problem Solving](./Notes/Problem-Solving.md)
32-
- [Basic Data Structures](./Notes/Data-Structures.md)
33-
- [Bits and Subsets](./Notes/Bits-and-Subsets.md)
34-
- [Binary Search](./Notes/Binary-Search.md)
31+
- [Introduction to Problem Solving](./problem-solving)
32+
- [Basic Data Structures](./data-structures/introduction)
33+
- [Bits and Subsets](./bits-and-subsets.md)
34+
- [Binary Search](./binary-search.md)
3535

3636
### Graph Theory
3737

38-
- [Introduction to Graph Theory](./Notes/Graph-Theory.md)
39-
- [Dijkstra's Algorithm](./Notes/Dijkstras-Algorithm.md)
38+
- [Introduction to Graph Theory](./graph-theory/introduction)
39+
- [Breadth-First Search](./graph-theory/traversal/breadth-first-search)
40+
- [Depth-First Search](./graph-theory/traversal/depth-first-search)
41+
- [Dijkstra's Algorithm](./graph-theory/shortest-path/dijkstras-algorithm)
4042

4143
### Dynamic Programming
4244

43-
- [Introduction to Dynamic Programming](./Notes/Dynamic-Programming.md)
44-
- [Bitmask Dynamic Programming](./Notes/Bitmask-Dynamic-Programming.md)
45+
- [Introduction to Dynamic Programming](./dynamic-programming/introduction)
46+
- [Bitmask Dynamic Programming](./dynamic-programming/bitmask-dynamic-programming)
4547

4648
## Wish List
4749

Notes/Binary-Search.md renamed to binary-search/binary-search.md

+1-18
Original file line numberDiff line numberDiff line change
@@ -77,24 +77,7 @@ Now that we have the three possible scenarios handled, we just need to define wh
7777

7878
We want to keep searching while we have some range of numbers to check, so if `lo` ever becomes greater than `hi`, then our target value is not in the array due to the fact that we have run out of numbers to check.
7979

80-
```java
81-
int lo = 0;
82-
int hi = N-1;
83-
84-
while (lo <= hi)
85-
{
86-
mid = lo + (hi -lo) / 2;
87-
88-
if (array[mid] == targetValue)
89-
break;
90-
91-
if (array[mid] < targetValue)
92-
lo = mid + 1;
93-
94-
if (array[mid] > targetValue)
95-
hi = mid - 1;
96-
}
97-
```
80+
![binary-search](../resources/binary-search.png)
9881

9982
## Problems
10083

File renamed without changes.

0 commit comments

Comments
 (0)