Ad
  • Custom User Avatar

    It's not a matter of code length, it's a matter of time complexity, have you tried with n = 1000000000?

  • Custom User Avatar

    Sample tests work fine with my code, ran it with different options on VSCode with no issues. But when "Attempting", server times out. I'm sure the code can be shortened, but it is correct.