Timeline for AoCG2021 Day 2: Naughty or nice?
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 2, 2021 at 13:52 | history | edited | Ezhik | CC BY-SA 4.0 |
added 86 characters in body
|
Dec 2, 2021 at 11:04 | comment | added | AnttiP |
-7 bytes with a loop: |mut s:&str|loop{(1..s.len()).any(|j|s.bytes().step_by(j).take(4).eq(*b"nice"))|(s=="")&&break ""!=s;s=&s[1..]}
|
|
Dec 2, 2021 at 9:05 | history | answered | Ezhik | CC BY-SA 4.0 |