Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For some reason I was really getting lost on step 2, “sort” it. They mean lexicographically or “sort it like each rotation is a word in the dictionary, where $ has the lowest character value”. Now that I see it, I’m a little embarrassed I got stuck on that step, but hopefully it helps someone else.


That trips up a lot of people, plus most examples include a '^' character at the beginning which is assigned the highest value




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: