• 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
tech_hutch Avatar
Name:Hutch
Clan:Moore Web & Code
Member Since:Dec 2020
Last Seen:Jun 2025
Profiles:
Following:0
Followers:1
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies
  • Authored (22)
  • Needs Resolution
  • Custom User Avatar
    • tech_hutch
    • commented on "Banana Press #1: Censoring Phrases" kata
    • 3 years ago

    JS makes this so hard

  • Custom User Avatar
    • tech_hutch
    • commented on "Grasshopper - Grade book" nasm solution
    • 4 years ago

    What's the purpose of lea rax,[rsi+rdi]?

  • Custom User Avatar
    • tech_hutch
    • commented on "Sum of Digits / Digital Root" kata
    • 4 years ago

    Thanks!

  • Custom User Avatar
    • tech_hutch
    • created a question for "Sum of Digits / Digital Root" kata
    • 4 years ago

    How do you get the function argument in NASM? I've tried different things, but I can't find it. It's not in eax, it's not in or around esp/rsp that I can tell. I'm new to assembly, so any help would be very appreciated!

  • Custom User Avatar
    • tech_hutch
    • commented on "Row Weights" rust solution
    • 4 years ago

    Doesn't need itertools. I'm guessing you just forgot to remove it. It's too bad CodeWars doesn't let us edit our solutions

  • Custom User Avatar
    • tech_hutch
    • commented on "Fake Binary" c solution
    • 4 years ago

    But then where in buffer will the char be put? Either buffer must be increased, or you need an index variable.

    Edit: oh wait, you're saying in addition to.

  • Custom User Avatar
    • tech_hutch
    • commented on "Fake Binary" c solution
    • 4 years ago

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

  • Custom User Avatar
    • tech_hutch
    • commented on "Opposites Attract" c solution
    • 4 years ago

    wtf lmao

  • Custom User Avatar
    • tech_hutch
    • commented on "Twice as old" csharp solution
    • 4 years ago

    loooool, this is definitely a problem that will require collections and multithreading

  • Custom User Avatar
    • tech_hutch
    • commented on "Most frequently used words in a text" javascript solution
    • 4 years ago

    This creates a Map<string, number> (one entry per word), a number[] (that never holds more than 3 elements), a string[] (that never holds more than 3 elements), and another string[] from filtering out the empty strings. I could have avoided the last one by not using filter, but I figured this was good enough. Unless I'm missing some easy optimization win, this is as optimal as is feasible to get in JS.

  • Custom User Avatar
    • tech_hutch
    • commented on "Disemvowel Trolls" c solution
    • 4 years ago

    This wastes memory (as many bytes as the number of vowels in the string).

  • Custom User Avatar
    • tech_hutch
    • commented on "Disemvowel Trolls" c solution
    • 4 years ago

    This wastes memory (as many bytes as the number of vowels in the string)

  • Custom User Avatar
    • tech_hutch
    • commented on "Remove String Spaces" c solution
    • 4 years ago

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

  • Custom User Avatar
    • tech_hutch
    • commented on "Counting Duplicates" rust solution
    • 4 years ago

    You probably forgot the import. counts is a method defined in the Itertools trait, and it's defined for all iterators (such as Chars, which is what chars() returns), but you have to import it to have access to it.

  • Custom User Avatar
    • tech_hutch
    • commented on "Counting Duplicates" rust solution
    • 4 years ago

    Oh man, I explicitly checked itertools for a method like counts, but I was looking at the documentation for an old version.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...