Sample Java project
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This code was written as a programming assignment.

The Test Details

Remove duplicate lines from a file. You can write this as a method with the following signature and the unique lines should be printed to stdout.

public class Deduplicator { public static void removeLines(String fileName) { // Write your code here. } }

The duplicate lines do not have to be sequential, and this should ideally be faster than O(n log n). Include the runtime of your solution.

This project was written in Java using IntelliJ IDEA 12.1.4.