Chief Hopper Discussions | Algorithms | HackerRank
  • + 2 comments

    I've a question regarding your test case number #2

    The sequence of height starts like 1401 2019 1748 3785 3236 ...

    And the expected output is 1859.

    To start with to reach the 1'st element itself, we'll need 1401.

    And the second element is 618 units higher than the first.

    So this means, we should start with atleast 2019 to successfully reach till the second element.

    So how this is possible with 1859?