Leetcode 443: Run length encoding or string compression (Python3)

preview_player
Показать описание
Hi there,
Let us try this simple leetcode problem of string compression. It seems a popular interview problem.
Рекомендации по теме
Комментарии
Автор

chars = chars[:index] -- what are we trying to achieve in this line of code ? are we trying to reduce the chars array size ?

akshathapurushotham