• 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
anantacodes Avatar
Name:Ananta Kumar Roy
Clan:Unknown
Member Since:Apr 2018
Last Seen:Apr 2025
Profiles:
Following:8
Followers:2
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (74)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • anantacodes
    • commented on "Count words" javascript solution
    • 3 months ago

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

  • Custom User Avatar
    • ujjawaldeveloper
    • commented on "Count words" javascript solution
    • 3 months ago

    Bro it actually returns a value of 2, you should think again

  • Custom User Avatar
    • anantacodes
    • commented on "Simple Fun #149: Next Day Of Week" javascript solution
    • 7 months ago

    I understood nothing about the problem at all. What is availableweekdays ? No wonder I do not understand any of the solutions. I did not get the problem statement itself.

  • Custom User Avatar
    • anantacodes
    • commented on "Make Me Slow" javascript solution
    • 9 months ago

    Wow ! I wonder if this solution would come to someone's mind if the tests were not visible.

  • Custom User Avatar
    • justmkfr
    • commented on "Find the Missing Number" javascript solution
    • 10 months ago

    I mean he could have just constructed a new array with the length of 100 and added 1 to each element to get up to 100 and then used the reduce method, but as you can probaly already tell that's way more work than just hard-coding the 5050. I did something similar in my code

  • Custom User Avatar
    • anantacodes
    • commented on "Find the Missing Number" javascript solution
    • 10 months ago

    What do you call "pre" here ? I see this is a reverse take on the accumulator in reduce.

  • Custom User Avatar
    • anantacodes
    • commented on "Find the Missing Number" javascript solution
    • 10 months ago

    why is this best practice if the sum 5050 is hard coded ? isn't a more general solution wherein the sum for the first 100 positive integers 0 included is calculated first the way to do it ?

  • Custom User Avatar
    • anantacodes
    • commented on "Fizz Buzz Cuckoo Clock" javascript solution
    • 10 months ago

    the manager has an increment waiting for you for delivering such understandable code .

  • Custom User Avatar
    • Madjosz
    • resolved a question on "Rotate for a Max" kata
    • 10 months ago

    Your code already gets IndexOutOfBoundsException. When I fix this it fails for two-digit numbers.

  • Custom User Avatar
    • Madjosz
    • resolved a question on "Rotate for a Max" kata
    • 10 months ago

    You should read the description again on how the rotations should be applied. Your algorithm rotates the whole number and that is not what is asked for here.

  • Custom User Avatar
    • aryuemaan
    • created a question for "Rotate for a Max" kata
    • 10 months ago

    I am getting this error
    For n = 38458215: 84582153 should equal 85821534
    For n = 195881031: 958810311 should equal 988103115

    for first 2 test cases
    that next two test cases are passed my logic was to store each rotation in the rotations list to keep track of all the numbers generated.

  • Custom User Avatar
    • anantacodes
    • commented on "Rotate for a Max" kata
    • 10 months ago

    always tend to get stuck on katas by g964 so much so that everytime i see their question , I go - 'argh, here we go again' . great exercise for the gray matter :D

  • Custom User Avatar
    • anantacodes
    • commented on "The highest profit wins!" javascript solution
    • 10 months ago

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

  • Custom User Avatar
    • itai215
    • commented on "3 powers of 2" javascript solution
    • 10 months ago

    A

  • Custom User Avatar
    • D3v4st
    • commented on "3 powers of 2" javascript solution
    • 10 months ago

    А

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...