remove unneeded filter function

This commit is contained in:
Jonas Seiler 2023-06-16 10:22:15 +02:00
parent 6ca74d2711
commit c4c098fcbd

10
main.jl
View File

@ -17,16 +17,6 @@ function readInput(filter=(x->true))
return sort(words)
end
function longest()
words = readInput2()
maxLength = maximum(length, words)
for w in words
if length(w) == maxLength
return w
end
end
end
function createGraph(words::Vector{String})
graph = Vector{node}()
for w in words