feat(content): function signatures + test cases

This commit is contained in:
2025-07-13 19:53:34 +01:00
parent 9e6c6d256f
commit 65a8d525f5
203 changed files with 4526 additions and 0 deletions

View File

@@ -9,6 +9,28 @@ categories:
patterns:
- dynamic-programming
function_signature: "def min_steps(n: int) -> int:"
test_cases:
visible:
- input: { n: 3 }
expected: 3
- input: { n: 1 }
expected: 0
hidden:
- input: { n: 4 }
expected: 4
- input: { n: 6 }
expected: 5
- input: { n: 12 }
expected: 7
- input: { n: 17 }
expected: 17
- input: { n: 100 }
expected: 14
- input: { n: 1000 }
expected: 21
description: |
There is only one character `'A'` on the screen of a notepad. You can perform one of two operations on this notepad for each step: