Ad
  • Default User Avatar

    looks like u solved it~~

  • Custom User Avatar

    Very nice kata! I used a couple loops to solve this. Which gave me a bit more experience with them. I recommend this one! :)

  • Custom User Avatar

    Hey thanks for the help! i passed it! :D

  • Custom User Avatar

    oh crap! its returning 0 because its not exacally 3!?

  • Custom User Avatar

    based off the directions there only one combo involved with three. thats 3 threes = 300.

     Three 6's =>  600 points
     Three 5's =>  500 points
     Three 4's =>  400 points
     Three 3's =>  300 points
     Three 2's =>  200 points
     One   1   =>  100 points
     One   5   =>   50 point
    

    So i dont know what happens if there is more then 3 threes. lol

  • Custom User Avatar

    No, it returns 300 if there are exactly three 3's, what happens if there are more than three?

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Default User Avatar

    Description updated

  • Default User Avatar

    I've updated the description. Should be OK now.

  • Custom User Avatar

    @Chrono79 Yes that description would be much better!
    @KenKamau Its exhausting seeing as multiple people have had an issue with this and yet you still refuse to change the description!
    People are legit wasting their time on this kata to find out the description is misleading/not clear enough.

  • Default User Avatar

    It's exhausting to always see that those who understand the description very well are the ones that ask for a change. This LyranGod character understands it well enough to give us different versions of it.

    If you need us to clarify something in the description, please ask a specific question. There is no reason to change the description.

  • Custom User Avatar

    If you keep reading it is explained.

    solve("our code") = "edo cruo"
    -- Normal reversal without spaces is "edocruo". 
    -- However, there is a space after the first three characters, hence "edo cruo"
    solve("your code rocks") = "skco redo cruoy"
    solve("codewars") = "srawedoc" 
    

    Would something like this be clearer?

    In this Kata, we are going to reverse a string while maintaining the spaces (if any) in their original place.

  • Custom User Avatar

    "In this Kata, we are going to reverse a string while maintaining spaces."
    "maintaining" spaces, does not clarify, that the position/index of the spaces needs to be kept in the same order for the result.

    honestly there's like 6 comments already addressing this issue yet it hasn't been fixed.

  • Default User Avatar

    Pls specify which words are not clear.

  • Loading more items...