/
eb
/
grokking_algorithms
Обзор
Документация
Войти
/
eb
/
grokking_algorithms
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
09_dynamic_programming/lua/01_longest_common_subsequence.lua
7 строк
195 B
zhangjiongwx
Add Lua code for chapter 6-9 (#36)
13 ноя 2017, 19:14
13 ноя 2017, 19:14
d0ac45b
Код
Авторство
О чём код?
if word_a[i] == word_b[j] then -- The letters match. cell[i][j] = cell[i - 1][j - 1] + 1 else -- The letters don't match. cell[i][j] = math.max(cell[i - 1][j], cell[i][j - 1]) end