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.
Awesome kata; it ate my soul for a while, then made me incredibly satisfied!
Understood; thanks for considering my suggestion :)
Sorry if this is a repeat question, but what is your take on pair-programming a kata and both uploading the same solution?
In other words, if I solve a kata with someone else then we both post our solution is that seen as some sort of cheating?
Thanks for the nice kata :), just one small suggestion for the Ruby description:
Replace
You receive the information about each candidate as an array of objects: each object should have a name and a scores array with the candidate roll values.
with
You receive the information about each candidate as an array of objects: each object should be a hash with two key/value pairs with the following keys: "name" and "scores". "name" is the name of the participant, "scores" is an array with the candidate roll values
pps: please do let me know what you think of my solution if you have a chance to look at it.
I am quite happy with the fact that I define a new method for the string class: this keeps the main method in the solution cleaner.
Nice! Thanks for the tip, I finally solved it. Will take you up on the Linkedin offer now :P
Yes, I am London based, I have just started the MakersAcademy course www.andreamazzarella.com
I would love to come along, could you point me in the right direction? Is there a meetup page? Happy to get as much involvement as I can.
ps I love codewars!
Hi Giacomo, thanks for the Kata, I really enjoyed it. I am using Ruby to solve it.
Unfortunately I think my solution should work however I pass all tests apart from one.
See below: the error message makes me think the test is expecting the wrong result (i.e. the third element is expected to be /important/confidential/, which is wrong I think?
Expected:
<a href="/">HOME</a> * <a href="/important/">IMPORTANT</a> * <a href="/important/confidential/">CONFIDENTIAL</a> * <span class="active">DOCS</span>
instead got:
<a href="/">HOME</a> * <a href="/important/">IMPORTANT</a> * <a href="/confidential/">CONFIDENTIAL</a> * <span class="active">DOCS</span>
If you had a few minutes to spare to review that would be great!
Should these solution not be failed as they use string methods?
Nice kata!
That took me a while, nice kata!
Hi, sorry for the delayed response and thanks for your feedback.
I have now added random tests, please could you let me know what you think?
Thanks
Hi, I am sorry but I am relatively new, and I am not sure how I could add a random test, would you be able to explain that to me?
Thanks, Andrea
Hi There, my solution in Ruby passes all test but the last one, I wonder if you could help me figure out what is wrong. Any chance you could send me the test?
Thanks
Hi, sorry you were right, I was iterating through every integer and that was not very efficient. Have now found another way that involves a lot fewer steps.
Thank you
Well, it takes 318ms when I test using the 'Run tests' button, so I do not think I need to make it faster, or is there something I am missing?
Can I post my code for you to review?
Thanks
Loading more items...