Skip to content

Instantly share code, notes, and snippets.

View ufosaga's full-sized avatar

Thomas Wang ufosaga

  • Shanghai, China
View GitHub Profile
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
/**
* Answer to http://codereview.stackexchange.com/questions/67804
*
* Builds all combinations of the given elements.
*/