(self, n: int)
| 1 | class Solution: |
| 2 | def clumsy(self, n: int) -> int: |
| 3 | if n == 1: |
| 4 | return 1 |
| 5 | if n == 2: |
| 6 | return 2 |
| 7 | if n == 3: |
| 8 | return 6 |
| 9 | if n == 4: |
| 10 | return 7 |
| 11 | if n % 4 == 0: |
| 12 | return n+1 |
| 13 | if n % 4 == 1 or n % 4 == 2: |
| 14 | return n+2 |
| 15 | if n % 4 == 3: |
| 16 | return n-1 |
nothing calls this directly
no outgoing calls
no test coverage detected