remove unneeded filter function
This commit is contained in:
parent
6ca74d2711
commit
c4c098fcbd
10
main.jl
10
main.jl
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user