Ad
  • Default User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

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

  • Custom User Avatar

    now 3.
    i really like f strings.

  • Custom User Avatar

    If I can't do it right, I can't do it wrong .. but I would like to do it right.

    Listen, I don't blame you. The description is dense, you have to really read it, and for a lot of people on here, English is not their native tongue ( it isn't mine either ). I really would like to have a better description. ( I'm just a bit allergic to two things: people not reading, and people wanting pseudocode instead of a description. )

    If anybody can improve the description without taking two screenfuls of text, examples and pseudocode, I am open to suggestions. So far, nobody ever has taken me up on that offer .. ( a lot of my descriptions are this dense. they're meant to be read. )

  • Custom User Avatar

    Great! Then you can propose a better wording. :]

  • Default User Avatar

    Task

    Given an array and an index, return the index of the least number larger than the element at the given index...

    given_array = [4, 1, 3, 5, 6]
    given_index = 0
    
    number_at_given_index = 4
    numbers_larger_than_number_at_given_index = [5, 6]
    least_of_numbers_larger_than_number_at_given_index = 5
    index_of_least_of_numbers_larger_than_number_at_given_index = 3
    
    return 3
    
  • Custom User Avatar

    I also have no clue what this kata is asking for

  • Custom User Avatar

    It's asking for an index. I can't make it simpler than that.

    Multiple indices may be correct; in this case, return any one of them. If a correct index doesn't exist, return -1 or an empty value, depending on language.

  • Custom User Avatar

    Make sure your function is called greet.