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 think a solution without extension function is better because the kata is for absolute beginners
Oh I think this one is my favourite!
This one is definitely the best.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
God love whoever voted this a best practise :D
This comment is hidden because it contains spoiler information about the solution
Nice! something to consider would be scanning the two arrays separately first to find the shortest and longest string, and then doing the comparison after.
Nice! A couple suggestions:
strlen
on each element in each comparison, and strlen isn't cached in C, so you'll see a bunch of redundant length counts.This comment is hidden because it contains spoiler information about the solution