Ad
  • Custom User Avatar

    You have absolutely no idea what you're talking about. This is an equation based on math equations since the discovery of Euler's number in the 1700's. It's probably the easiest way to solve this problem, provided you understand the math and remember the formula. Personally, I solved this w/ a while loop b/c I couldn't remember the formula w/o checking, but your analysis is f-----g absurd.

  • Custom User Avatar

    Sometimes single-line/method-chaining/nested-methods can be the coolest, easiest to read, most performant way to do something. Other times it a self-gratifying, useless, tortured attempt to say, "look, I can do this with on a single line!" This is certainly the latter. Single line does not necessarily equal good.

  • Custom User Avatar

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