Ad
  • Custom User Avatar

    For a bit more clarity, redux means

    1. Analyze first element (impossible since you need a pair)
    2. Analyze first two elements in list (should be trivially easy
    3. Analyze first three elements in list
    4. Analyze first four elements in list
  • Custom User Avatar

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

  • Custom User Avatar

    Thanks!
    R

  • Custom User Avatar

    Even though 3 comes after the frist 5, 7 comes before the 2nd 5. Hence, 3,7 as a pair comes earlier.

  • Custom User Avatar

    Two of the excruciatingly long tests seem to be broken. Debug code:

    puts "Initial ints length is: #{ints.length}"
    if ints.length < 10
    puts ints
    end

    shows that the "Two Million Numbers With Pair At End: Should terminate with a valid pair output" and "Two Million Numbers With Pair At Start: Should terminate with a valid pair output" tests are only passing in 2 and 1 element arrays respectively, but are expecting a match (that isn't present in the arrays).

  • Custom User Avatar

    Hi all,

    I have problem with a particular test case. I can read in it : "First Match From Left REDUX!:"
    The first useful output is [5,5] but the solution wants [3,7]. Could be for the "REDUX" stuff?
    What does it mean?
    Thank you!

  • Custom User Avatar

    Am I not allowed to use #sort? I got back this message error, test cases were ok!

    group_and_count': undefined method sort' for nil:NilClass (NoMethodError)
    from `
    '
    Thanks
    Rodolfo

  • Custom User Avatar

    I have the same problem too. Just one thing, where did you take this? I mean, where is the set of test cases?
    I am not able to find it.
    I have a solution but I do not know why is not working. I can even share my solution without any problems but probably you won't be able to see it, assuming that you are still on this kata.
    Thanks!
    Rodolfo

  • Custom User Avatar
  • Custom User Avatar

    Please, help me!
    Thank you!
    Rodolfo

  • Custom User Avatar

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