feat(content): function signatures + test cases
This commit is contained in:
@@ -8,6 +8,28 @@ categories:
|
||||
patterns:
|
||||
- greedy
|
||||
|
||||
function_signature: "def is_same_after_reversals(num: int) -> bool:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { num: 526 }
|
||||
expected: true
|
||||
- input: { num: 1800 }
|
||||
expected: false
|
||||
- input: { num: 0 }
|
||||
expected: true
|
||||
hidden:
|
||||
- input: { num: 1 }
|
||||
expected: true
|
||||
- input: { num: 10 }
|
||||
expected: false
|
||||
- input: { num: 100 }
|
||||
expected: false
|
||||
- input: { num: 123 }
|
||||
expected: true
|
||||
- input: { num: 12300 }
|
||||
expected: false
|
||||
|
||||
description: |
|
||||
**Reversing** an integer means to reverse all its digits.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user