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.
Took me more time than I thought it would, but enjoyed it. Kudos to the author.
ditto. I also targeted a wrong format. Besides, I think this kata should be moved to the 7 kyu category at least.
There should be one more condition added on the 0 and negative values being unacceptable. I though it was implied, and ran into a couple issues. Either add such cases to the testing pool and the description, or do not accept negative values. How can a valid size be negative?
challenging, but such a relief when it finally resolved all the tests. I would rate this kata higher than 6: even though the final solution is simple, it takes some time to arrive at it.
This comment is hidden because it contains spoiler information about the solution
I'd suggest googling "Code complexity" or "Big O notation". There are tons of youtube videos on the matter as well. I would publish a youtube link here, but I doubt it's allowed.
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
My bad. I was just checking how my breadcrumb URL generator looks in HTML (it's another kata), so I thought I would write a comment to a random kata to review its format and then delete it. But now you responded to it, so I can't delete it any longer. :D Sorry for the confusuon again
The test case comparison only works when the outcome of your function is a string. In your case it is a 'NonType' object. Since "NoneType" object doesn't have certain attributes (e.g.: it doesn't have 'replace' attribute), the evaluator fails to run the test case comparison.
In a nutshell, please make sure your function returns a string
<a href="/">HOME</a> * <a href="/important/">IMPORTANT</a> * <a href="/confidential/">CONFIDENTIAL</a> * <a href="/docs/">DOCS</a> * <span class="active">INDEX</span>
You are right. It did work once I applied Euclidean division (//). However, why should one spend so much time on figuring it out by running all those manual checks and numerous try-outs?
The code itself takes 5 minutes, but grasping the task takes forever. A bit frustrating, but I'm glad it finally worked out.
@Monadius, thanks a ton for the hint. Appreciate it.
Loading more items...