2 wrong answers
Hi mudit,
Please provide your complete code i am unable to view your code below line 107.
And please add comments to make your code more readable.
Hey,
Your code is completely correct but it is not printing as per the desired output.
As desired Output has Increasing order of Integers at every k distance.
Like your code is giving ouput as 85 17 at certain level. But the Correct Output is 17 85.
Here ArrayList may solve your purpose.(for the sorted order).
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.