Skip to content

Instantly share code, notes, and snippets.

@JustAndrei
JustAndrei / AnagramSearch.java
Created June 20, 2019 21:43
Helmes-challenge-2
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
public class Program {
public static void main(String[] args) {
// This is just an example; the real dictionary should be loaded from a file
String[] dictionary = new String[] { "телескоп", "лепесток", "отпор", "ропот", "топор", "клоповник", "полковник", "вход", "вдох", "электрик" };
AnagramSearch search = new AnagramSearch();
Collection<String> anagrams = search.collectAnagrams( dictionary, "топор" );

Keybase proof

I hereby claim:

  • I am JustAndrei on github.
  • I am just (https://keybase.io/just) on keybase.
  • I have a public key whose fingerprint is 5C88 B3CB AF04 2286 3786 601A 5A40 F2CF 2F16 FED0

To claim this, I am signing this object: