Ad
  • Custom User Avatar

    OP solved it, closing

  • Custom User Avatar

    Input range should be specified: there can be potential performance requirements, but it is not clear whether it exists based on what's given.

  • Custom User Avatar

    and an array with floating-point numbers

    No, that's a horrendous idea. Everyone in every competitive coding site will have a problem with you if you do this.

  • Custom User Avatar

    I think, at this moment only integers is correct input. I`ll add a test case for negative numbers

  • Default User Avatar

    I suggest including additional test cases, such as an empty array, an array containing negative numbers, and an array with floating-point numbers. Alternatively, you could explicitly mention in the description that these types of inputs are not permitted.

  • Default User Avatar
    Input: 2,8,4: expected true to equal false
    
  • Custom User Avatar

    Can you adwise some articles or, maybe, books to read about ways to implement this algorithm?

  • Custom User Avatar

    Nice work on the random tests.. great Kata :)

  • Custom User Avatar

    If a direction (left, right, up, or down) has a "T" at the end, it means you're supposed to move in that direction and then add the letter you land on to the password. If it's not there, you move but don't add to the password.

  • Custom User Avatar

    Can yoг explain in simle words - what is left(top etc) and leftT(topT etc) in this cata?

  • Custom User Avatar

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

  • Default User Avatar

    In random cases :

    • a new HallOfFame is created with size and players arguments. eg xxx = new HallOfFame(3,[["ZZ",12],["xxx",9],["YyY",13]])
      Then size of its length is tested (should be equal to 'size' )
    • then a list of players is added on after another, and each time a new player is added, the list of the tested Hall is compared to expected list
      (ie list of same size but with only avaible players, sorted as required)

    Does it help ?

    ; ) )

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

    Ah you caught my trick!

    Thanks for the help though