/
eb
/
grokking_algorithms
Обзор
Документация
Войти
/
eb
/
grokking_algorithms
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
09_dynamic_programming/ruby/01_longest_common_subsequence.rb
7 строк
169 B
Leon Rische
code for chapter 9 in ruby
03 мар 2016, 18:17
03 мар 2016, 18:17
7a2d6d8
Код
Авторство
О чём код?
if word_a[i] == word_b[j] # The letters match. cell[i][j] = cell[i-1][j-1] + 1 else # The letters don't match. cell[i][j] = [cell[i-1][j], cell[i][j-1]].max end