I am not able to find error in my code.According to me code must work fine.Only 1 test case is passing out of 3.
please help me and guide as to where I am wrong.
link to my code is–https://ide.codingblocks.com/s/56961
thx in advance sir/ma’am.
Probem in "Arrays -Intersection of Two Arrays"
Hey Nikhil, your logic is not correct. Check your logic for this case
input:
5
1 2 3 4 4
2 3 4 5 8
your code’s output:
[]
expected output:
[2, 3, 4]
Hey Nikhil, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “Ask Doubt” section, when your doubt is resolved.