Hi, Can you please highlight the mistake I am making in the code.
Link: https://ide.codingblocks.com/s/311967
Please specify some test case where it is failing.
Thanks
Mistake in Code
Input is working correctly,I have verified by printing the vector.