Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sample Java project
Java
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/com/charlesmadere/java/deduplicator
.gitignore
document.txt
readme.md

readme.md

Deduplicator

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.

Something went wrong with that request. Please try again.