https://ide.codingblocks.com/s/55561
sir, this is producing wrong answer in one test case. wht is the error ?
https://ide.codingblocks.com/s/55561
sir, this is producing wrong answer in one test case. wht is the error ?
you are just printing the first and last occurance.
You need to print the index of all occurance of that number in array