Sherlock and Queries

  • + 0 comments

    I will give a hint to other people trying to get through this by themselves: it's a trivial improvement of the algorithm that one immediately sees, followed by a sanitization of the input. The second part is less obvious, as some people - including myself - don't see it as part of the initial algorithm.