fix: correct String.format() parameter passing error in climbing_stairs_*.java (#1807)

This commit is contained in:
PXG-XPG
2025-09-20 05:11:51 -06:00
committed by GitHub
parent 1e6a84119a
commit 909b89680f
5 changed files with 7 additions and 7 deletions
@@ -40,9 +40,9 @@ public class climbing_stairs_dp {
int n = 9;
int res = climbingStairsDP(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));
res = climbingStairsDPComp(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));
}
}