Realm

lawn

gno.land/r/moul/x/daily/levenshteindemo/v1:flaw/lawn

Render

Levenshtein distance

Transforming flawlawn

  • Edit distance: 2 single-character edits (insert / delete / substitute)
  • Similarity: 50%

DP table

Each cell d[i][j] is the distance between the first i runes of flaw and the first j runes of lawn. The bottom-right cell is the answer.

εlawn
ε01234
f11234
l21234
a32123
w43212

← back

Source (qfile)

README.md
gnomod.toml
levenshteindemo.gno