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.
I like how concise it is. My code is similar but i have to reduce the number of lines used
It's perfectly fine to iterate over the characters of a line looking for the first comment marker. It's even much more efficient in terms of runtime, see my other comment! And it can be beautiful too, have a look at my solution.
Beautiful. I like the idea of iterating over the markers and successively shortening the lines up to each individual marker. It's very elegant, concise, and legible. Note, though, that this wastes a lot of time iterating over the same characters of a line again and again (just imagine long lines with no comment markers at all and a long list of possible markers). But that's ok here for practicing; legibility and interesting ideas can be more instructive than code optimized for performance.
Smart!
fantastic
regular expression looks like a bullshit
Could be less than O(n²)... but still nice one
This comment is hidden because it contains spoiler information about the solution
also I have asked this question to myself)
like:
hope this help with understanding
I see that it works by running it, but not even with debugging I understand what is going on here. "parts" is being rewritten for every marker and somehow the result takes into account all the markers? Any help would be appreciate it!
5 lines, it's cool!
But in truth, the task is not difficult.
IKR SAME ;((
This comment is hidden because it contains spoiler information about the solution
Bruh aint no way wtf i was tearing my hear out when it was actually so simple
This comment is hidden because it contains spoiler information about the solution
Loading more items...