Doubt Regarging std::unique() | AC vs WA

Revision en1, by aneee, 2020-08-03 23:27:53

Problem.

I solved the problem with three pointers. But when I sort the vectors first and the resize, I get an AC. If I sort them after making them unique, I get a WA.

AC Code
WA Code

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English aneee 2020-08-03 23:27:53 1401 Initial revision (published)