Skip to content

Commit b020ead

Browse files
committed
Fix broken run instructions, williamfiset#120
1 parent 9954fa2 commit b020ead

File tree

11 files changed

+28
-36
lines changed

11 files changed

+28
-36
lines changed

src/main/java/com/williamfiset/algorithms/dp/examples/HouseRobber.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/**
22
* Problem: https://leetcode.com/problems/house-robber
33
*
4-
* <p>Time Complexity: O(n) Space Complexity: O(n)
4+
* <p>Time Complexity: O(n), space Complexity: O(n)
55
*
66
* <p>Download the code: $ git clone https://github.com/williamfiset/Algorithms
77
*
8-
* <p>Change directory to the root of the Algorithms directory: $ cd Algorithms
8+
* <p>Change directory to the root of the Algorithms directory:
9+
* <p> $ cd Algorithms
910
*
10-
* <p>Build: $ javac com/williamfiset/algorithms/dp/examples/HouseRobber.java
11+
* <p>Build: $ javac -d src/main/java src/main/java/com/williamfiset/algorithms/dp/examples/HouseRobber.java
1112
*
12-
* <p>Run: $ java com/williamfiset/algorithms/dp/examples/HouseRobber
13+
* <p>Run: $ java -cp src/main/java com/williamfiset/algorithms/dp/examples/HouseRobber
1314
*/
1415
package com.williamfiset.algorithms.dp.examples;
1516

src/main/java/com/williamfiset/algorithms/graphtheory/examples/EagerPrimsExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
*
77
* <p>Change directory to the root of the Algorithms directory: $ cd Algorithms
88
*
9-
* <p>Compile: $ javac com/williamfiset/algorithms/graphtheory/examples/EagerPrimsExample.java
9+
* <p>Compile: $ javac -d src/main/java src/main/java/com/williamfiset/algorithms/graphtheory/examples/EagerPrimsExample.java
1010
*
11-
* <p>Run: $ java com/williamfiset/algorithms/graphtheory/examples/EagerPrimsExample
11+
* <p>Run: $ java -cp src/main/java com/williamfiset/algorithms/graphtheory/examples/EagerPrimsExample
1212
*
1313
* <p>Time Complexity: O(ElogV)
1414
*

src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/CapacityScalingExample.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
*
1010
* <p>Change directory to the root of the Algorithms directory: $ cd Algorithms
1111
*
12-
* <p>Build: $ javac
13-
* src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/CapacityScalingExample.java
12+
* <p>Build: $ javac src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/CapacityScalingExample.java
1413
*
15-
* <p>Run: $ java -cp src/main/java/
16-
* com/williamfiset/algorithms/graphtheory/networkflow/examples/CapacityScalingExample
14+
* <p>Run: $ java -cp src/main/java/ com/williamfiset/algorithms/graphtheory/networkflow/examples/CapacityScalingExample
1715
*/
1816
package com.williamfiset.algorithms.graphtheory.networkflow.examples;
1917

src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/DinicsExample.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
*
99
* <p>Change directory to the root of the Algorithms directory: $ cd Algorithms
1010
*
11-
* <p>Build: $ javac
12-
* src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/DinicsExample.java
11+
* <p>Build: $ javac -d src/main/java src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/DinicsExample.java
1312
*
14-
* <p>Run: $ java -cp src/main/java/
15-
* com/williamfiset/algorithms/graphtheory/networkflow/examples/DinicsExample
13+
* <p>Run: $ java -cp src/main/java com/williamfiset/algorithms/graphtheory/networkflow/examples/DinicsExample
1614
*/
1715
package com.williamfiset.algorithms.graphtheory.networkflow.examples;
1816

src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/EdmondsKarpExample.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
*
88
* <p>Change directory to the root of the Algorithms directory: $ cd Algorithms
99
*
10-
* <p>Build: $ javac
11-
* src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/EdmondsKarpExample.java
10+
* <p>Build: $ javac -d src/main/java src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/EdmondsKarpExample.java
1211
*
13-
* <p>Run: $ java -cp src/main/java/
14-
* com/williamfiset/algorithms/graphtheory/networkflow/examples/EdmondsKarpExample
12+
* <p>Run: $ java -cp src/main/java com/williamfiset/algorithms/graphtheory/networkflow/examples/EdmondsKarpExample
1513
*/
1614
package com.williamfiset.algorithms.graphtheory.networkflow.examples;
1715

src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/FordFulkersonExample.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
*
99
* <p>Change directory to the root of the Algorithms directory: $ cd Algorithms
1010
*
11-
* <p>Build: $ javac
12-
* src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/FordFulkersonExample.java
11+
* <p>Build: $ javac -d src/main/java src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/FordFulkersonExample.java
1312
*
14-
* <p>Run: $ java -cp src/main/java/
15-
* com/williamfiset/algorithms/graphtheory/networkflow/examples/FordFulkersonExample
13+
* <p>Run: $ java -cp src/main/java com/williamfiset/algorithms/graphtheory/networkflow/examples/FordFulkersonExample
1614
*/
1715
package com.williamfiset.algorithms.graphtheory.networkflow.examples;
1816

src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/MiceAndOwls.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
*
44
* <p>Change directory to the root of the Algorithms directory: $ cd Algorithms
55
*
6-
* <p>Build: $ javac
7-
* src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/MiceAndOwls.java
6+
* <p>Build: $ javac -d src/main/java src/main/java/com/williamfiset/algorithms/graphtheory/networkflow/examples/MiceAndOwls.java
87
*
9-
* <p>Run: $ java -cp src/main/java/
10-
* com/williamfiset/algorithms/graphtheory/networkflow/examples/MiceAndOwls
8+
* <p>Run: $ java -cp src/main/java com/williamfiset/algorithms/graphtheory/networkflow/examples/MiceAndOwls
119
*/
1210
package com.williamfiset.algorithms.graphtheory.networkflow.examples;
1311

src/main/java/com/williamfiset/algorithms/graphtheory/treealgorithms/examples/TreeHeight.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
*
66
* <p>Change directory to the root of the Algorithms directory: $ cd Algorithms
77
*
8-
* <p>Compile: $ javac
9-
* com/williamfiset/algorithms/graphtheory/treealgorithms/examples/TreeHeight.java
8+
* <p>Compile: $ javac -d src/main/java src/main/java/com/williamfiset/algorithms/graphtheory/treealgorithms/examples/TreeHeight.java
109
*
11-
* <p>Run: $ java com/williamfiset/algorithms/graphtheory/treealgorithms/examples/TreeHeight
10+
* <p>Run: $ java -cp src/main/java com/williamfiset/algorithms/graphtheory/treealgorithms/examples/TreeHeight
1211
*
1312
* <p>Time Complexity: O(n)
1413
*

src/main/java/com/williamfiset/algorithms/graphtheory/treealgorithms/examples/TreeSum.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
*
66
* <p>Change directory to the root of the Algorithms directory: $ cd Algorithms
77
*
8-
* <p>Compile: $ javac com/williamfiset/algorithms/graphtheory/treealgorithms/examples/TreeSum.java
8+
* <p>Compile: $ javac -d src/main/java src/main/java/com/williamfiset/algorithms/graphtheory/treealgorithms/examples/TreeSum.java
99
*
10-
* <p>Run: $ java com/williamfiset/algorithms/graphtheory/treealgorithms/examples/TreeSum
10+
* <p>Run: $ java -cp src/main/java com/williamfiset/algorithms/graphtheory/treealgorithms/examples/TreeSum
1111
*
1212
* <p>Time Complexity: O(n)
1313
*

src/main/java/com/williamfiset/algorithms/math/CompressedPrimeSieve.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
*
88
* <p>Time Complexity: ~O(nloglogn)
99
*
10-
* <p>Compile: javac com/williamfiset/algorithms/math/CompressedPrimeSieve.java
10+
* <p>Compile: javac -d src/main/java src/main/java/com/williamfiset/algorithms/math/CompressedPrimeSieve.java
1111
*
12-
* <p>Run: java com/williamfiset/algorithms/math/CompressedPrimeSieve
12+
* <p>Run: java -cp src/main/java com/williamfiset/algorithms/math/CompressedPrimeSieve
1313
*
1414
* @author William Fiset, [email protected]
1515
*/

0 commit comments

Comments
 (0)