X-Git-Url: https://fbox.kageds.com/gitweb/adventofcode.git/blobdiff_plain/631d46d1172966f4651050b813ad4298496423ff..1517295a267908fd7e7141b59b99cc3a85a09f57:/day3/day3.erl?ds=sidebyside diff --git a/day3/day3.erl b/day3/day3.erl index ee14ac9..0f506c3 100644 --- a/day3/day3.erl +++ b/day3/day3.erl @@ -11,7 +11,7 @@ solve() -> init:stop(). solve(A) -> - solve(A, get_data()). + solve(A, get_test_data()). solve(['1'], D) -> io:format("The solution to ~p puzzle1 is: ~p~n", [?MODULE, solve(1, D)]); @@ -60,6 +60,7 @@ get_count_list([H|_] = D) -> get_count_list(D, init_acc(length(H), [])). get_count_list([], Acc) -> + io:format("~p~n", [Acc]), Acc; get_count_list([H|T], Acc) -> get_count_list(T, lists:zipwith(fun(X, {Ones, Zeros}) ->