Skip to content

Commit 7903795

Browse files
committed
changed next bigger
1 parent 355a3ab commit 7903795

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nextBiggerNumberWithSameDigit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ function nextBigger(n){
44
let num =n.toString().split("")
55
let arr=num.map(Number).sort()
66
console.log(arr)
7+
console.log(arr)
78
for(let i=num.length-1;i>=0;i--){
89
if(num[i]>num[i-1]){
910
let temp= num[i]

0 commit comments

Comments
 (0)