Given a number, find the next higher number which has the exact same set of digits as the original number
I just bombed an interview and made pretty much zero progress on my interview question. Given a number, find the next higher number which has the exact same set of digits as the original number. For example: given 38276 return 38627 I wanted to begin by finding the index of the first digit (from the … Read more