Ad
  • Custom User Avatar

    added

  • Custom User Avatar

    I was able to get N=2000 here (C++), so you don't need to have any constrains ;) This kata is mostly about how much performance you can squeeze before reaching a timeout.

  • Custom User Avatar

    Description in other languages has information about upper bound, but C++ misses this info.
    If I see correctly, max n is 1000.

  • Custom User Avatar

    What are the constraints for N in C++ tests? Every other language has them listed (For example, Python says 1<=N<=1000), where C only says "All possible values are tested." I assume it is not testing every integer input, so what should this say?

  • Custom User Avatar

    ^ x -1 is not accepted, because the correct answer is / 1 x. These are equivalent expressions, are they not? Language is python, test is basic ln(x).