We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
n
number
1 parent 99e0bec commit 65c27abCopy full SHA for 65c27ab
dynamic_programming/minimum_steps_to_one.py
@@ -29,19 +29,15 @@
29
30
def min_steps_to_one(number: int) -> int:
31
"""
32
- Implemented using tabulation.
33
-
34
- DocTests
+ Minimum steps to 1 implemented using tabulation.
35
>>> min_steps_to_one(10)
36
3
37
38
>>> min_steps_to_one(15)
39
4
40
41
>>> min_steps_to_one(6)
42
2
43
44
- :param n:
+ :param number:
45
:return int:
46
47
0 commit comments