Ad
  • Custom User Avatar
  • Custom User Avatar

    Each piece is delimited by punctuation

    What are considered punctuation in this kata?

  • Custom User Avatar

    This sentence If multiple golds are found in one piece of soil they should be added together, so that the following piece of soil "g5 g5; sdg g44" has two pieces of soil, both containing gold, with respective values of 10 and 44. doesn't seem to be used for anything in the actual tests.

  • Custom User Avatar

    I am also encoutering this issue. . any advise?

  • Custom User Avatar

    Yes, I also thought the same think. This solution absolutely is using string operation.

  • 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

    Regrettably we cannot have that part of the description different from language to language, so I fear we will have to do with the test cases below.

  • Custom User Avatar

    You should try again, I get this error when I submit your code: ReferenceError: sum is not defined.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • 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

    Oh, to think that me and 6 of my group were at Makers just on Thursday ;)...

    Otherwise, you could come to this upcoming event hosted by a very cool guy (shameless self-promotion :p), again, with a good part of my group.

    As far as the use of a method instead of a function goes, to me is more a matter of personal preferences, plus of course ahdering to common practice with the same dev team. Btw, you certainly seem to know your Ruby, probably more than me, so there is little else I can comment on :).

  • 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!

  • Loading more items...