Timeline for Count the number of ones in an unsigned 16-bit integer
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Jan 7, 2016 at 21:08 | comment | added | AdmBorkBork |
Hiya! Following the same logic you have, why not use the inline -join operator and an implicit .ToString() to achieve 45 bytes with [char[]][convert]::ToString($s,2)-join'+'|iex ... OR, as a different approach use inline -replace operator to achieve 43 bytes with ([convert]::ToString($s,2)-replace0).length
|
|
Mar 18, 2015 at 14:23 | review | First posts | |||
Mar 18, 2015 at 15:08 | |||||
Mar 18, 2015 at 14:18 | history | answered | Mathias R. Jessen | CC BY-SA 3.0 |