Implement Unix uniq

Problem: Implement a Simplified Unix uniq

Implement a simplified version of the Unix uniq command.

Given n lines of strings, output the lines in their original order, but if the same line a...

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: