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.
1 parent 8014241 commit 54d155dCopy full SHA for 54d155d
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