Skip to content

Commit 0be176c

Browse files
William FisetWilliam Fiset
authored andcommitted
Mountain Scenes
1 parent a86c7af commit 0be176c

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed
217 KB
Binary file not shown.

src/main/java/com/williamfiset/algorithms/dp/examples/scenes/Scenes.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ public static void main(String[] args) throws IOException {
2020
W = Integer.parseInt(ln[1]);
2121
H = Integer.parseInt(ln[2]);
2222

23+
solution1();
24+
}
25+
26+
// Recursive solution implementation
27+
static void solution1() {
2328
// Count the number of plain mountains. Be sure to account for having more
2429
// ribbon than can possible be placed.
2530
int plains = (Math.min(W * H, N) / W) + 1;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10000 100 100

0 commit comments

Comments
 (0)