Talk:Levenshtein distance: Difference between revisions

m
→‎Java: l/c i
(→‎Java: new section)
m (→‎Java: l/c i)
 
Line 120:
== Java ==
 
The Java Iterative space optimized (even bounded) version translated from Python was missing the initialization of the cost array. Implicitly done in Python, but missing for Java. This results in subtle bugs for a subset of strings. One such example being ["abcdefgh", "defghabc"] with the correct answer being 6 and the previously translated version here returning 5. I updated the source code with the correct initialization, (i.e. cost[i] = Ii;). --[[User:Caislen|Caislen]] ([[User talk:Caislen|talk]]) 20:41, 16 November 2020 (UTC)
7,794

edits