https://ide.codingblocks.com/#/s/14731
https://hack.codingblocks.com/contests/c/474/209
test case number 1 failed.
please help.
https://ide.codingblocks.com/#/s/14731
https://hack.codingblocks.com/contests/c/474/209
test case number 1 failed.
please help.
In your code you are running the inner loop from ith index to the end assuming that the element would be present anywhere in between those indices in the second array, which is not correct.
got it mam.
thank you
can you please take a look…