Intersection of two arrays

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 :slight_smile:


can you please take a look…