Ad
  • Custom User Avatar

    Awesome kata; it ate my soul for a while, then made me incredibly satisfied!

  • Custom User Avatar

    Understood; thanks for considering my suggestion :)

  • Custom User Avatar

    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?

  • Custom User Avatar

    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

  • Custom User Avatar

    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.

  • Custom User Avatar

    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!

  • Custom User Avatar

    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!

  • Custom User Avatar

    Should these solution not be failed as they use string methods?

  • Custom User Avatar

    Nice kata!

  • Custom User Avatar

    That took me a while, nice kata!

  • Custom User Avatar

    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

  • Custom User Avatar

    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

  • Custom User Avatar

    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

  • Custom User Avatar

    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

  • Custom User Avatar

    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...