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 6c2917a commit ce652c4Copy full SHA for ce652c4
0066-plus-one/0066-plus-one.ts
@@ -0,0 +1,3 @@
1
+function plusOne(digits: number[]): number[] {
2
+ return (BigInt(digits.join('')) + BigInt(1)).toString().split('').map(Number)
3
+};
0 commit comments