Finding Levenshtein distance on two string
问题 I am trying to implement in Eclipse Java Levenshtein distance on the following two strings: I took the idea from Wikipedia, but I don't know why my output is wrong, I need help to find my mistake/s. "kruskal" "causal" package il.ac.oranim.alg2016; public class OPT { public static void main(String[] args) { char[] t={'k','r','u','s','k','a','l'}; char[] s={'c','a','u','s','a','l'}; for (int i=0;i<=s.length;i++) { for (int j=0;j<=t.length;j++) System.out.print(LevenshteinDistance(s,t)[i][j]+" "