Why I am not getting any output ?
Expedi Problem Greedy
u have placed the cout <<ans inside the for loop
and since u are using the continue statement a lot of time
it might be possible that continue is hit for i = n -1 and nothing is getting printd
move cout out of the for loop
I have moved cout out of the for loop but still getting the wrong answer. Can you please check ?
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.