Skip to content

Commit 4c3026c

Browse files
sean424leokim0922
andauthored
use quotient for num_ways
Co-authored-by: Leo Kim <[email protected]>
1 parent 367d4da commit 4c3026c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

climbing-stairs/bhyun-kim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ def climbStairs(self, n: int) -> int:
3434
output = 0
3535

3636
for i in range(n // 2 + 1):
37-
num_ways = factorials[n - i] / factorials[n - (i * 2)] / factorials[i]
37+
num_ways = factorials[n - i] // factorials[n - (i * 2)] // factorials[i]
3838
output += num_ways
3939
return int(output)

0 commit comments

Comments
 (0)