Ad
  • Default User Avatar

    In your first loop, you only filter out items from a[] if they are at the same location as an item of the same value in b[]. That is not what the description specifies. Try reading it again.

    And your second loop: I have no idea, what you're even attempting to do there, or why.