Post History
J, 46 char Solution: (]#~[:([:*./(<./,>./)~:"0 1])([:+/"1@#:a.&i.)) Test example: (]#~[:([:*./(<./,>./)~:"0 1])([:+/"1@#:a.&i.)) 'oAPwSoeHcoDretMBBoesoBsagHDoew' Secre...
Answer
#1: Initial revision
# J, 46 char **Solution:** ``` (]#~[:([:*./(<./,>./)~:"0 1])([:+/"1@#:a.&i.)) ``` **Test example:** ``` (]#~[:([:*./(<./,>./)~:"0 1])([:+/"1@#:a.&i.)) 'oAPwSoeHcoDretMBBoesoBsagHDoew' SecretMessage ``` **How it works:** ``` a.&i. converts from text to ascii number #: converts from ascii number to binary +/"1 adds the 1s in the binary numbers (<./,>./) finds greatest and lowest values in lists *./(<./,>./)~:"0 1 produces boolean indicating locations of non-greatest and non-lowest values #~ selects from original text locations indicated by boolean ```