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.
Чел, шикарная ката.
Python translation
added instructions in the initial code + explicit check of the returned address
The reason is to make API more flexible by enabling chaining in a way similar to
strcpy,strcat, and such.It would be much more intuitive to make the return
void. There is no reason to return the same pointer that is provided.I'm soooooo happy that I managed to do it this way too .
hahahaha
you could just do what i did too, although this solution is def more clever
Not clearly defined how "lines" should be counted if there is/is not a final newline in the file.
This comment is hidden because it contains spoiler information about the solution
I was tryna figure out how imma one line it, I couldn't, GREAT STUFF!
I love how easy Python makes it for you to just do things like this.
The only oneliners that make you feel dumb!
That's a clean solution to be honest
I think it depends on the language you use, some languages have dedicated methods to flatten nested arrays, and some don't, and you'll have to figure the logic out.
Well I call it Best Practices.
Loading more items...