Q7:)Given a positive integer, find the smallest integer that has exactly the same digits existing in the integer n and is greater in value than n. If no such positive integer exists, return -1. Note that the returned integer should fit in a 32-bit in...

Markdown supported · ⌘↵ to post
No responses yet.