Created
October 21, 2018 15:40
-
-
Save chrdek/118198318e292be331fd41b8f04460f6 to your computer and use it in GitHub Desktop.
Zero count v1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| f=i=>{r=[...i+""].map(c=>{return(c=="0")?[].push():' '}).join('').split(' ').map(c=>c.length);return Math.max.apply(Math,r)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment