Timeline for Return all letter counts as an integer
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 15, 2021 at 14:50 | comment | added | Kaddath |
@640KB haven't found shorter yet.. I was also experimenting the other way round to have the alphabetical order, not that far but still longer. If you have an idea with it: for($c=a;$c!=aa;$c++)($i=count(preg_split("~$c~i",$argn))-1)?$r.=$i:0;echo$r; for 77 bytes
|
|
Dec 15, 2021 at 14:30 | comment | added | 640KB |
Nine one. I read this and was like "oh yeah, that's count_chars() " . There should be something cheaper than preg_replace() and strtolower() but probably isn't!
|
|
Dec 15, 2021 at 8:37 | history | answered | Kaddath | CC BY-SA 4.0 |