• 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
private_duck Avatar
Name:Unknown
Clan:Unknown
Member Since:Apr 2019
Last Seen:May 2022
Profiles:
    Following:2
    Followers:1
    Allies:1
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (16)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • JackUnicorn
      • commented on "Palindromes Here and There" javascript solution
      • 2 years ago

      /

    • Custom User Avatar
      • JackUnicorn
      • commented on "Palindromes Here and There" javascript solution
      • 2 years ago

      Actually yours and his solutions are O(n^2) so you can't say his solution is a much slower one.
      But I like the way you search for palindromes in your solution tho!

    • Custom User Avatar
      • SteveArray
      • commented on "Palindrome Strings" javascript solution
      • 6 years ago

      Because in production code other people need to be able to fully understand the code and there is lots of it, so they don't want to spend long periods of times trying to work out what is going on.

    • Custom User Avatar
      • private_duck
      • commented on "Palindrome Strings" javascript solution
      • 6 years ago

      why not?

    • Custom User Avatar
      • SteveArray
      • commented on "Palindrome Strings" javascript solution
      • 6 years ago

      I understand, that you probably wouldn't write it this way, for production code. But I still like the logic behind this.

    • Custom User Avatar
      • private_duck
      • commented on "Palindromes Here and There" javascript solution
      • 6 years ago

      it can't be a best practice with so much performance waste

    • Custom User Avatar
      • private_duck
      • commented on "Find the most frequently occurring elements in arrays" javascript solution
      • 6 years ago

      it can't be a best practice with so much performance waste

    • Custom User Avatar
      • private_duck
      • commented on "Simple elevator" kata
      • 6 years ago

      thanks for The log appears above the test result

    • Custom User Avatar
      • Chrono79
      • resolved an issue on "Simple elevator" kata
      • 6 years ago

      If it says instead got: 1, your function returned 1. The log appears above the test result, so maybe you're confusing the input of one tests with the result of another:

      JavaScript Completions 1460

      The tests are ok.

    • Custom User Avatar
      • private_duck
      • created an issue for "Simple elevator" kata
      • 6 years ago

      What's wrong with a test with input 1.5 '3' (JS)?

      Expected: 0, instead got: 1
      Log
      1.5 '3' <-- input
      0 <-- output of my function
      
    • Custom User Avatar
      • private_duck
      • commented on "Closest to Zero" javascript solution
      • 6 years ago

      it can't be 'best practices' with a performance waste

    • Custom User Avatar
      • private_duck
      • commented on "Closest to Zero" javascript solution
      • 6 years ago

      it can't be 'best practices' with so much performance waste

    • Custom User Avatar
      • private_duck
      • commented on "All Star Code Challenge #10" javascript solution
      • 6 years ago

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

    • Custom User Avatar
      • g964
      • resolved an issue on "Tortoise racing" kata
      • 6 years ago

      Nota n issue of the kata (more than 14000 people passed it). Maybe a CW problem.

    • Custom User Avatar
      • private_duck
      • created an issue for "Tortoise racing" kata
      • 6 years ago

      When I click train button (https://www.codewars.com/kata/tortoise-racing/train/) I have undefined method 'username' for nil:NilClass (Looks like there was a server error! (500)). Any help?

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...