• 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
seblm Avatar
Name:Unknown
Clan:Unknown
Member Since:Apr 2022
Last Seen:May 2025
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations
    • Replies (6)
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • etherusko
      • commented on "Jaden Casing Strings" javascript solution
      • 13 months ago

      Humm? Is not your own solution read through the string a lot mor of times? doing a cicle for you are reading the string mor than once for each character.

    • Custom User Avatar
      • BrodieGriggs
      • commented on "Round up to the next multiple of 5" javascript solution
      • 17 months ago

      Shouldn't be any issue with modifying the given parameter as we are told that we "can assume that all inputs are valid integers".

      From MDN:
      "Parameters are essentially passed to functions by value — so if the code within the body of a function assigns a completely new value to a parameter that was passed to the function, the change is not reflected globally or in the code which called that function.

      When you pass an object as a parameter, if the function changes the object's properties, that change is visible outside the function."

    • Custom User Avatar
      • imaNami
      • commented on "Sum of two lowest positive integers" javascript solution
      • 17 months ago

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

    • Custom User Avatar
      • toacin
      • commented on "Sum of two lowest positive integers" javascript solution
      • 2 years ago

      He did not do the same thing. The .sort() method has a time complexity of O(n log(n)). This algo can be solved with one simple for loop as seblm described with a time complexity of O(n), which will be far more performant as your array grows in size.

    • Custom User Avatar
      • mrbilalarain
      • commented on "Sum of two lowest positive integers" javascript solution
      • 2 years ago

      whats the difference than? you did the same thing.

    • Custom User Avatar
      • jaredwilbraham
      • commented on "Round up to the next multiple of 5" javascript solution
      • 2 years ago

      Agree that this shouldn't be considered best practice. Clean code tho.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...