Ad
  • Custom User Avatar

    When aptempting in kotlin, for the "textPageIndex" test, it will say incorrect value :

    expected -1, was 0 when returning -1 if out of range

    expected 0, was x if we change the if out of range to return x (if that x is not -1, if it is -1 refer to previous line)

  • Custom User Avatar

    Wouldn't this be the best to put in your code if you need to calculate that ?