• + 0 comments

    Me too misread it. It's written to find the longest subarray but in explanation part it is taking multiset(i.e. sub-sequence).