• 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
dawkrish Avatar
Name:Krishnansh Agarwal
Clan:Unknown
Member Since:Sep 2022
Last Seen:Oct 2024
Profiles:
Following:1
Followers:1
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (3)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • JohanWiltink
    • commented on "Perimeter of squares in a rectangle" kata
    • 12 months ago

    Because the specs say so. Arguments start at 0, number of squares starts at 1 - there's your + 1.

    The specs could easily have said something different ( and arguably more sensible ), but they don't.

  • Custom User Avatar
    • dawkrish
    • commented on "Sum of Intervals" kata
    • 2 years ago

    excellent these test cases are perfect

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

    can someone explain why are we doing it for n+1 not for n, am I missing out something ?

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...