tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
4
Task/Run-length-encoding/APL/run-length-encoding.apl
Normal file
4
Task/Run-length-encoding/APL/run-length-encoding.apl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
∇ ret←RLL rll;count
|
||||
[1] count←∣2-/((1,(2≠/rll),1)×⍳1+⍴rll)~0
|
||||
[2] ret←(⍕count,¨(1,2≠/rll)/rll)~' '
|
||||
∇
|
||||
Loading…
Add table
Add a link
Reference in a new issue