• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
Simonas Avatar
Name:Unknown
Clan:Unknown
Member Since:Jul 2015
Last Seen:May 2022
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations
    • Replies (3)
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • bkaes
      • commented on "Perimeter of squares in a rectangle" kata
      • 10 years ago

      By the way, you probably use an exponential algorithm to get your result and therefore have O(2^n) instead of O(n).

    • Custom User Avatar
      • g964
      • commented on "Perimeter of squares in a rectangle" kata
      • 10 years ago

      I can't say better:-)

    • Custom User Avatar
      • MMMAAANNN
      • commented on "Perimeter of squares in a rectangle" kata
      • 10 years ago

      This means your code is not optimal enough.
      When you press "Run tests", you run the simple tests, which are editable.
      When you press "Submit", you run the validating tests, which you cannot edit and which may be quite heavy. If you get the 6000ms error, your code is just too slow, and you have to refactor it so it manages to run the submission tests within 6 seconds.

      https://github.com/Codewars/codewars.com/wiki/Error-messages:-Submission-timed-out#huh-it-says-now-process-took-more-than-6000ms-did-they-change-the-message

    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...