Remove unused
This commit is contained in:
parent
30fad2d678
commit
f1a35a8ab6
1 changed files with 0 additions and 8 deletions
|
@ -30,12 +30,4 @@ package object aoc {
|
||||||
go(as, Set.empty)
|
go(as, Set.empty)
|
||||||
}
|
}
|
||||||
|
|
||||||
def levenshtein(a: String, b: String): Int =
|
|
||||||
((0 to b.length).toList /: a)(
|
|
||||||
(prev, x) =>
|
|
||||||
(prev zip prev.tail zip b).scanLeft(prev.head + 1) {
|
|
||||||
case (h, ((d, v), y)) => Math.min(Math.min(h + 1, v + 1), d + (if (x == y) 0 else 1))
|
|
||||||
}
|
|
||||||
).last
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue