Skip to content

Instantly share code, notes, and snippets.

View WeiChienHsu's full-sized avatar
🎯
Focusing

Wei-Chien Hsu WeiChienHsu

🎯
Focusing
View GitHub Profile
@WeiChienHsu
WeiChienHsu / Permutation.java
Created February 2, 2019 15:52
Permutation Problem
import java.util.*;
class Permutation {
public static void main(String[] args) {
String[] dayHoursList = new String[]{"4", "4", "4", "4", "4", "?", "?"};
int maxDayHours = 8;
int weekHours = 28;
List<String> results = getPermutation(dayHoursList, maxDayHours, weekHours);
for(int i = 0; i < results.size(); i++) {
System.out.println(results.get(i));