• 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
algoSolver988 Avatar
Name:Unknown
Clan:Unknown
Member Since:Mar 2022
Last Seen:Apr 2022
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (28)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • Bravono
      • commented on "Are they the "same"?" javascript solution
      • 3 years ago

      If you're not going to use the original later, you can change it. Maybe in a realife project, it is best to stay safe by making a copy.

    • Custom User Avatar
      • algoSolver988
      • commented on "Are they the "same"?" javascript solution
      • 3 years ago

      Loved the way you solved it, when sorting is it good to do it in place or is it best practice to make a copy of the arr and then sort it?

    • Custom User Avatar
      • akar-0
      • commented on "Multiples of 3 or 5" javascript solution
      • 3 years ago

      Yes.

    • Custom User Avatar
      • algoSolver988
      • commented on "Multiples of 3 or 5" javascript solution
      • 3 years ago

      Is the underscore (_) mean that it's a placeholder we're not using ?

    • Custom User Avatar
      • algoSolver988
      • commented on "Check the exam" javascript solution
      • 3 years ago

      A reduce function which is easy to follow along, thanks :)

    • Custom User Avatar
      • algoSolver988
      • commented on "Check the exam" javascript solution
      • 3 years ago

      Love seeing a reduce function since I'm not fully comfortable with reduce

    • Custom User Avatar
      • algoSolver988
      • commented on "Check the exam" kata
      • 3 years ago

      Dude , thanks for writing this comment. I'm more silly because I had in the instructions "If the score < 0, return 0" but still came here to check if something is wrong when I get -3

    • Custom User Avatar
      • algoSolver988
      • commented on "Is this a triangle?" kata
      • 3 years ago

      This is a bit easier to figure out that the code wars problem regarding interest and taxes on a initial principal

    • Custom User Avatar
      • algoSolver988
      • commented on "Is this a triangle?" kata
      • 3 years ago

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

    • Custom User Avatar
      • algoSolver988
      • commented on "Is this a triangle?" kata
      • 3 years ago

      What do you mean by the triangle already exists ? Are we not testing if the triangle could exist in our algo ? Sorry, I'm not fully understanding your question

    • Custom User Avatar
      • algoSolver988
      • commented on "Is this a triangle?" kata
      • 3 years ago

      Interesting, did not think of float values... It gives you an error when you input floating point values?

    • Custom User Avatar
      • algoSolver988
      • commented on "Is this a triangle?" javascript solution
      • 3 years ago

      When you copy an array using the assignment operator (equal sign) and you modifiy the copied array you mutate/modify the original array as well.
      If you don't want to modify the original array it's best to use spread syntax (other options as well to do this)

      In our case, he assinged the a,b,c in an [array] first and secondly he assigned the value of running [sort] through it thus what's on the left will be exactly to what's on the right.

      So when he returns [a and b] he knows that a trianlge can only have 3 lengths and they're the shortests.

      Hope that answered your questions, let me know if you need clarification.

    • Custom User Avatar
      • algoSolver988
      • commented on "Make a function that does arithmetic!" javascript solution
      • 3 years ago

      Thanks for pointing this out because I would have not realized.

    • Custom User Avatar
      • algoSolver988
      • commented on "Make a function that does arithmetic!" javascript solution
      • 3 years ago

      Was wondering the same thing, thaks for asking. I added it a 'break' after every case for best practices but wasn't sure if I needed it.

    • Custom User Avatar
      • algoSolver988
      • commented on "Printer Errors" javascript solution
      • 3 years ago

      Oh, I see what you mean, ty

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...