Ad
  • Custom User Avatar

    this solution doesn't work for this case
    returnAscending(1,2,3,10,50)
    // '11023450'

  • Custom User Avatar

    I got an error that expected 'good luck' be returned. How does this account for that?

  • Custom User Avatar

    Function should take one number.

  • Custom User Avatar

    Very cool and interesting kata, both in terms of implementation and in terms of plot

    I hope doc will finish with "Gold Rush Race" kata too...

  • Custom User Avatar

    I'am not understand how it's work.

    In test examples present 55, and I should return 55.

    But in final tests present 66 and 55 too. And there I should return 12 and 10 appropriate. How ?

  • Custom User Avatar

    brainstorming kata...

    and really not 6, 5 as min

  • Custom User Avatar

    Well, I was also confused by this. And after seeing your question, I was aware of my mistake.
    As English is not my mother tongue, I do not understand the exact meaning of 'toroidal' and 'wrapping'. After consulting the dictionary, I find out that it means something like 'cycle'. If we are at the top of the grid and go further north, we will be at the bottom in the next iteration. And now everything is right for us...
    Thank you!

  • Custom User Avatar

    Please describe how it should be work ?

    should exhibit toroidal (wrapping) behaviour
    
    interpreter("eee*s*s*s*w*w*w*w*w*w*w*n*n*n*n*n*n*n*n*n*e*e*e*e*e*e*e*s*s*s*s*s*", 1000, 8, 10)
    
    Expected: '00011000\r\n00011000\r\n00011000\r\n11111111\r\n11111111\r\n00011000\r\n00011000\r\n00011000\r\n00011000\r\n00011000'
    

    We have the follow:

    3 moves to right (e - Move data pointer east (right));
    3 moves to down (s - Move data pointer south (down));
    7 moves to left (w - Move data pointer west (left));

    Looks like this doesn't make sense. Because we are will in position -4.

  • Custom User Avatar

    Hi, I have the follow issues in random tests:

    isSet: hand = [{"val":"5","suit":"Spades"},{"val":"5","suit":"Diamonds"}]
    flop = [{"val":"6","suit":"Clubs"},{"val":"5","suit":"Clubs"},{"val":"8","suit":"Clubs"}]
    
    Expected: 'false', instead got: 'true'
    
    isSet: hand = [{"val":"Jack","suit":"Diamonds"},{"val":"Jack","suit":"Spades"}]
    flop = [{"val":"3","suit":"Hearts"},{"val":"Jack","suit":"Clubs"},{"val":"6","suit":"Diamonds"}]
    
    Expected: 'false', instead got: 'true'
    
    isSet: hand = [{"val":"4","suit":"Diamonds"},{"val":"8","suit":"Spades"}]
    flop = [{"val":"7","suit":"Spades"},{"val":"7","suit":"Spades"},{"val":"7","suit":"Hearts"}]
    
    Expected: 'false', instead got: 'true'
    

    I think this bug similar as was for isSet() function

  • Custom User Avatar

    This is a O(n^3) solution (for each boss (n), splice the array (n) at the indexOf (n) curRobot).

    Also it mutates the original input with splice.

  • Custom User Avatar

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