• 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
xiaomingyang-git2021 Avatar
Name:Xiaoming Yang
Clan:Pursuit-8.2
Member Since:Jul 2021
Last Seen:Jul 2023
Profiles:
    Following:28
    Followers:28
    Allies:28
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (11)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • efece
      • commented on "Enumerable Magic #20 - Cascading Subsets" javascript solution
      • 7 months ago

      we thought of same solution lol

    • Custom User Avatar
      • rsschool_79225aba9ab810ad
      • commented on "Odd-Even String Sort" javascript solution
      • 15 months ago

      thank you!)

    • Custom User Avatar
      • MikhailAndreev
      • commented on "Odd-Even String Sort" javascript solution
      • 15 months ago

      "v" is unused, it is needed because by default first parameter is current element and second is index.

    • Custom User Avatar
      • rsschool_79225aba9ab810ad
      • commented on "Odd-Even String Sort" javascript solution
      • 2 years ago

      May someone explain me the use of 'v' in filter method here?

    • Custom User Avatar
      • max30272
      • commented on "Odd-Even String Sort" javascript solution
      • 3 years ago

      Oh, thanks. I just thought this would be O(6n).
      It seems I need learn more about the time complexity.

    • Custom User Avatar
      • max30272
      • commented on "Odd-Even String Sort" javascript solution
      • 3 years ago

      Is this the Best Practices?
      It runs the loop so many times, and that can be optimize.

    • Custom User Avatar
      • rsschool_e149ee012a3a560b
      • commented on "Odd-Even String Sort" javascript solution
      • 3 years ago

      Thank you)

    • Custom User Avatar
      • anthonypz
      • commented on "Odd-Even String Sort" javascript solution
      • 3 years ago

      Filter loops through every item in an array and 'v' is a placeholder/variable that represents the current item. 'v' can be any name you choose. Since this problem does not require using the current item, it serves no purpose. Many times you'll encounter a _ variable when a function parameter is planned on being unused.

    • Custom User Avatar
      • rsschool_e149ee012a3a560b
      • commented on "Odd-Even String Sort" javascript solution
      • 3 years ago

      Who can explain, what v it means?

    • Custom User Avatar
      • akar-0
      • commented on "Will you make it?" kata
      • 4 years ago

      It means your code returns undefined (if JS, probably you return nothing), while it must return a boolean.

    • Custom User Avatar
      • xiaomingyang-git2021
      • commented on "Will you make it?" kata
      • 4 years ago

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

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...