iamhitarth / nextBigger

Function that returns the next bigger number with the same digits.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NextBigger

Utility to get the next biggest number with the same digits e.g. passing in 2315 will return 2351.

Will return the same name number if there is no bigger number with the same digits e.g. 9999 will return 9999.

npm test - to run all the tests.

About

Function that returns the next bigger number with the same digits.


Languages

Language:JavaScript 100.0%