Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Oh wow nice, I was just working on this.

  • Custom User Avatar

    Yup, I re-read the instructions and it only works where a is less than b in Some((a,b)). Now to make it more efficient...

  • Default User Avatar

    How I understood the description is:

    • 1 the left element has to be smaller than the right element of the tuple pair
    • 2 the left element must be in limits.

    your suggested pair Some((2024, 2295)) fails for condition 2 if the limits are [2177, 2300] and 2024 < 2177. If the pair is swapped around to Some((2295, 2024)), then condition 1 fails.

    That is at least my uninformed reading of the task.

  • Custom User Avatar

    I am getting this same error. 2295 and 2024 are valid pairs - I calculated them by hand.

  • Custom User Avatar

    Hello, I'm testing this in rust. Currently when my code faces the test range 2177 to 2300, I get an expected pair 2024 and 2295. You can factor these online and add their factors - it is a valid pair. However, currently the expected value is None, although there is a valid pair in this range. Please fix!

  • Custom User Avatar

    This is copied from Eloquent Javascript - maybe you should at least credit it?