Ad
  • Default User Avatar

    Even though I took this approach, I wouldn't count it as a best practice. It sacrifices some time complexity for readability.

  • Default User Avatar

    Yes, using simplier language often makes things simplier. But also often makes communication not so nice. On the other hand once we get our communication (?down) to a simple and strict level, we have to make sure that we are not wrong with our simple words. Are you, Arslan?

  • Custom User Avatar

    Return a table with two columns (number1, number2) where the values in number1 have been rounded down and the values in number2 have been rounded up.

    That means you have to do that, otherwise, what's the point of the kata? Feel free to suggest a better wording if you want.

    P.S.: after reading zardoxnet's post below, I see there is another valid interpretation to the current kata's description, I'm gonna change the instructions to what he suggested, it seems clearer.