Skip to content

Commit

Permalink
challenge55 refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
varnie committed Feb 9, 2025
1 parent 3033125 commit 6258c72
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/challenge55.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ defmodule Challenge55 do
count == 1 ->
[%TreeNode{symbol: :x, left: nil, right: nil}]

count == 2 ->
[
%TreeNode{symbol: :x, left: %TreeNode{symbol: :x, left: nil, right: nil}, right: nil},
%TreeNode{symbol: :x, left: nil, right: %TreeNode{symbol: :x, left: nil, right: nil}}
]

true ->
cbal_tree_helper(cbal_tree(count - 1))
end
Expand Down

0 comments on commit 6258c72

Please sign in to comment.