mirror of
https://github.com/krahets/hello-algo.git
synced 2026-06-30 17:44:26 +00:00
fix: correct String.format() parameter passing error in climbing_stairs_*.java (#1807)
This commit is contained in:
@@ -26,6 +26,6 @@ public class climbing_stairs_dfs {
|
||||
int n = 9;
|
||||
|
||||
int res = climbingStairsDFS(n);
|
||||
System.out.println(String.format("There are %d solutions to climb %d stairs", n, res));
|
||||
System.out.println(String.format("There are %d solutions to climb %d stairs", res, n));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user