• 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
mahesh2492 Avatar
Name:Mahesh Chand
Clan:Unknown
Member Since:Aug 2019
Last Seen:Jan 2023
Profiles:
Following:2
Followers:2
Allies:2
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (22)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • ejini战神
    • resolved a question on "Perimeter of squares in a rectangle" kata
    • 14 months ago

    OP solved it, closing

  • Custom User Avatar
    • ejini战神
    • resolved a question on "Minimum Steps (Array Series #6)" kata
    • 4 years ago

    OP solved it, closing

  • Custom User Avatar
    • stuenofotso@gmail.com
    • commented on "Perimeter of squares in a rectangle" kata
    • 5 years ago

    Same error

  • Custom User Avatar
    • sitetester
    • commented on "Factorial" kata
    • 6 years ago

    @steffan153 Nothing is visible. There is a red arrow to left of "KataTest". It's expand/collapse feature. But expanding it doesn't show anything.
    @mahesh2492 Were you able to proceed so far ?

  • Custom User Avatar
    • sitetester
    • commented on "Minimum Steps (Array Series #6)" kata
    • 6 years ago

    @mahesh2492 You can add a print statement for any random failing test by if condition to print all input parameters as well as your return value.
    print your return value to find out which test is failing and then add checks accordingly.

  • Custom User Avatar
    • Chrono79
    • resolved a question on "Reverse or rotate?" kata
    • 6 years ago

    Answered.

  • Custom User Avatar
    • Blind4Basics
    • resolved a question on "Backwards Read Primes" kata
    • 6 years ago

    just "RTFM"? x)

  • Custom User Avatar
    • mahesh2492
    • created a question for "Backwards Read Primes" kata
    • 6 years ago

    For input, (70000, 70245) : 70001 70009 70061 70079 70121 70141 70163 70241
    I got primes => 70001,70009,70061,70079,70121,70141,70163,70207,70241

    It failed because 70207 is not in solution list but it a backward prime as well as lie in range. Test cases are not correct. Can anyone explain me why 70207 is not a backward prime.

  • Custom User Avatar
    • xavierguihot
    • commented on "Playing with passphrases" scala solution
    • 6 years ago

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

  • Custom User Avatar
    • mahesh2492
    • commented on "Playing with passphrases" scala solution
    • 6 years ago

    Very concise solution. Just 1 doubt I looked for isLetter/isDigit but there is no such method.

  • Custom User Avatar
    • mahesh2492
    • commented on "Reverse or rotate?" kata
    • 6 years ago

    Thanks. I understood later after reading all comments on discussion. They have poorly explained the problem.

  • Custom User Avatar
    • Chrono79
    • commented on "Reverse or rotate?" kata
    • 6 years ago

    733049910872815764 in chunks of 5 digits becomes 73304 99108 72815 (the last chunk is discarded).

    If a chunk represents an integer such as the sum of the cubes of its digits is divisible by 2, reverse that chunk; otherwise rotate it to the left by one position.

    Because they're not, they are all rotated left by one position.

    73304 99108 72815 -> 33047 91089 28157

  • Custom User Avatar
    • mahesh2492
    • created a question for "Reverse or rotate?" kata
    • 6 years ago

    I didn't understand this test case:
    revrot("733049910872815764", 5) --> "330479108928157"

    After spliting, we will get (73304,9910872815764). First number is odd, so we shift it and get 33047.Second number is odd again. So we will get 9108728157649. After merging both, we don't get expected answer.
    Can any one please explain me? Any help will be appreciated.

  • Custom User Avatar
    • user8436785
    • resolved a question on "Factorial" kata
    • 6 years ago

    Scroll to the bottom. It will tell you what went wrong.

  • Custom User Avatar
    • mahesh2492
    • created a question for "Factorial" kata
    • 6 years ago

    All test cases have been passed but it gave Exit Code: 1 when I attempted. Not sure what it means?
    Anyone please guide me. Thanks

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...