• 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
Kinto Avatar
Name:Adam
Clan:Unknown
Member Since:Dec 2014
Last Seen:Jul 2024
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (49)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • xianjin
      • commented on "Minimum Perimeter of a Rectangle" kata
      • 2 years ago

      2*(1+89)==180

    • Custom User Avatar
      • Barinvic
      • created a question for "Minimum Perimeter of a Rectangle" kata
      • 2 years ago

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

    • Custom User Avatar
      • galp76
      • commented on "Minimum Perimeter of a Rectangle" kata
      • 3 years ago

      Very good kata. Back to university for a few hours.

    • Custom User Avatar
      • akar-0
      • created a suggestion for "Minimum Perimeter of a Rectangle" kata
      • 3 years ago

      D translation

    • Custom User Avatar
      • rowcased
      • resolved a suggestion on "Minimum Perimeter of a Rectangle" kata
      • 3 years ago

      Approved :)

    • Custom User Avatar
      • akar-0
      • commented on "Minimum Perimeter of a Rectangle" kata
      • 3 years ago

      The original kata included two big fixed tests, your solution times out on each of them. It's clearly in the original intention not to allow the most naive solutions to pass the kata. You need to find some optimization. It's not that hard, though.

    • Custom User Avatar
      • user204650
      • commented on "Minimum Perimeter of a Rectangle" kata
      • 3 years ago

      Whoever does these translations needs to remember that this is a 7kyu. There shouldn't be an insanely large edge case that times out for beginner kyus.

      ie. my Python solution passes sample and fixed tests, but not whatever is causing it to timeout in the edge case file.

    • Custom User Avatar
      • TennysonHorn
      • commented on "Minimum Perimeter of a Rectangle" kata
      • 3 years ago

      Must have been something else. After waiting about fifteen minutes and resubmitting the same solution, it no longer times out. Top solution in JS finished in ~7 seconds this time.

    • Custom User Avatar
      • akar-0
      • commented on "Minimum Perimeter of a Rectangle" kata
      • 3 years ago

      I've just tried the 3 top solutions in JS, they pass the attempt tests in about 1 sec.

    • Custom User Avatar
      • akar-0
      • commented on "Minimum Perimeter of a Rectangle" kata
      • 3 years ago

      The top voted solutions in C++ all pass the attempt tests in ~3 seconds (the reference solution is similar to them). All the other languages have been added today and tests have not been changed in any of them.

    • Custom User Avatar
      • TennysonHorn
      • commented on "Minimum Perimeter of a Rectangle" kata
      • 3 years ago

      I attempted the kata in javascript.

    • Custom User Avatar
      • akar-0
      • commented on "Minimum Perimeter of a Rectangle" kata
      • 3 years ago

      Which language are you refering to? The current range of C++ random tests doesn't exceed the bounds of the initial tests. And there are only 10 big tests in C++.

    • Custom User Avatar
      • dfhwze
      • commented on "Minimum Perimeter of a Rectangle" kata
      • 3 years ago

      Random tests have been added. Perhaps some older solutions no longer pass.

    • Custom User Avatar
      • dfhwze
      • resolved a suggestion on "Minimum Perimeter of a Rectangle" kata
      • 3 years ago

      approved

    • Custom User Avatar
      • TennysonHorn
      • commented on "Minimum Perimeter of a Rectangle" kata
      • 3 years ago

      I think this is maybe already an issue. My initial brute force solution passes most tests but was timing out on the large number tests so I surrendered after struggling to find another way. Tried a few of the top solutions and they all also time out and fail on the large number tests. I'm new at this though so I'm unsure the exact issue.

    • Loading more items...
    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...