In my VS code, this code running fine but getting an error of [SIGSEGV] on SPOJ platform …What am I missing in this code?
In my VS code, this code running fine but getting an error of [SIGSEGV] on SPOJ platform …What am I missing in this code?
Your code fails for this test case
1
1
We have to find the next greater number with the same set of digits.
so 1 as a test case maybe not possible.
problem :-JNEXT
yaa , Thanks buddy !