Solving LeetCode problem 1313 in APL (Decompress Run-Length Encoded List)

preview_player
Показать описание
In this short video we solve a LeetCode problem in APL:

Рекомендации по теме
Комментарии
Автор

The leetcode site really needs an APL option

arraymac
Автор

APL's power is subtle due to nested arrays. In J you are forced to explicitly use boxing since expanding the 2 by 2 matrix in J leads to trailing 0 pads:

dtwilight
Автор

This is a problem were J really shows how much more powerful it is than APL because of its "chunk" primitive which APL does not have: '; #/ each _2<\ y'

code_report
welcome to shbcf.ru