Implement Unix uniq

Problem: Implement a Simplified Unix uniq

Implement a simplified version of the Unix uniq command.

Given multiple lines of text, output them in the original order, but for each run of consecu...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: