Skip to content

Commit de6b8d1

Browse files
committed
Runtime: 226 ms (Top 14.46%) | Memory: 13.9 MB (Top 71.45%)
1 parent e62ae0b commit de6b8d1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/algorithms/R/Rotated Digits/Rotated Digits.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Runtime: 226 ms (Top 14.46%) | Memory: 13.9 MB (Top 71.45%)
12
class Solution:
23
def rotatedDigits(self, n: int) -> int:
34
d={
@@ -23,11 +24,11 @@ def rotatedDigits(self, n: int) -> int:
2324
if r is None:
2425
status=False
2526
break
26-
27+
2728
temp+=((10**pos)*r)
2829
pos+=1
2930
t=t//10
30-
31+
3132
if temp!=i and status:
3233
res+=1
33-
return res
34+
return res

0 commit comments

Comments
 (0)