No Idea!

  • + 0 comments

    I got this wrong initially because this note is ambiguous:

    Note: Since and are sets, they have no repeated elements. However, the array might contain duplicate elements.

    which I read as instructing me to not count duplicate elements so I made a set from the array which gives the wrong answer.