Skip to content

Instantly share code, notes, and snippets.

View rafaelvcaetano's full-sized avatar

Rafael Caetano rafaelvcaetano

  • Portugal
View GitHub Profile
rafaelvcaetano /
Last active July 1, 2017 00:05
Function to find anagrams in a list of words
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
public class AnagramFinder {
public static void main(String[] args) {
for (String s : findAnagrams(args)) {