otobrglez / compression-puzzle

Attempts to crack the "compression puzzle".
14 stars 47 forks source link

Add R solution by romunov #58

Closed romunov closed 2 years ago

romunov commented 2 years ago

My attempt at solving the puzzle using three basic R functions (#24) strsplit, rle and paste (paste0 is just a synonym with a default value for a separator set to "").

In addition to the solution I've also added myself to the authors, bumped stats and tried to add R to the run chain. I'm pretty sure I somehow botched the last part.

otobrglez commented 2 years ago

Thank you for your time and effort @romunov! 👏

This is so elegant that it feels like cheating. ;)

Hope that it inspires a new generation of R-hackers.

Sincerely!