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.
This comment is hidden because it contains spoiler information about the solution
Please mark your post as having spoiler content next time. Your post was visible in the homepage discourse.
This comment is hidden because it contains spoiler information about the solution
Should be a 6 kyu problem in c
It looks like the unused variable
_
only exists to cause it to be initialized with the result of_write_t_buf
etc. as a way to execute those functions in thefor
loop setup. It seems kind of hacky, and I made it be quiet in a similarly hacky way, byturningburying that unneeded return value in the0
we actually needed earlier:well, it SeemsToWork™
can I strike my answer from ever having existed? is what I thought when I saw this
Wait what?
This comment is hidden because it contains spoiler information about the solution
молодец
so clever
C sample test code has compilation warnings.
It's not faster, if you run the code, you'll notice that the time varies a lot between one and the other, sometimes one is faster and sometimes the other, and endswith is written in C for performance.
Thank you. I have enjoyed solving this kata.
nice
laughed at first, but taking a second glance my jaw dropped
Loading more items...