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.
2 parents 8014241 + 54d155d commit 3997fa6Copy full SHA for 3997fa6
066_Plus_One.py
@@ -0,0 +1,6 @@
1
+class Solution:
2
+ def plusOne(self, digits: List[int]) -> List[int]:
3
+ s=''
4
+ for x in digits:
5
+ s+=s.join(str(x))
6
+ return [int(x) for x in str(int(s)+1)]
0 commit comments