Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Disregarding some 3rd-party utility library's private (non-standard) conventions, all strings in C are null-terminated.
If you did't find the trailing
0
, then either you're not at the end yet, or else it's the provider's bug upstream sending you a defective malformed "string", as in, you segfaulted by reading beyond your given memory without finding it.This was me, it is my old solution, and it is shameful. The fact that it gathered some votes is shameful and seems closely related to the disaster we are in.
thought the point was to write suscinct code.
thought the point was to write suscinct code.
pretty eloborate
pretty eloborate
this example will only work if it is a null temrinated string, right? I didn't think it was safe to assume that.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Why do you need to use
compact
here? I tried you algorithm without it for a few cases and it seemed to still work.not very efficient.