Skip to content

Commit

Permalink
Optimizing elixir 029
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericojordan committed May 29, 2018
1 parent d2d66f5 commit 292c150
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/029/p029.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ defmodule Problem029 do

def solve do
generate_powers()
|> Enum.to_list()
|> Enum.sort()
|> Enum.dedup()
|> Enum.uniq()
|> Enum.count()
end
end
Expand Down

0 comments on commit 292c150

Please sign in to comment.