• 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
gh314 Avatar
Name:Gillett Hernandez
Clan:Unknown
Member Since:Mar 2014
Last Seen:Feb 2025
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (7)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • MikaelCall
    • commented on "Calculate the distance of two points in N dimensions" kumite
    • 8 years ago

    It is bad practice to create a list in the sum function. A generator will not allocate memory. Also, I find x and y to be better names for points in this, i.e. math, domain.

  • Custom User Avatar
    • leigaoyi
    • commented on "Calculate the distance of two points in N dimensions" kumite
    • 8 years ago

    Using package not in the standard python library like numpy, to test others is not very good.
    I think we come here to train language , not the special library.

  • Custom User Avatar
    • gh314
    • commented on "Sparkle Interpreter" kata
    • 9 years ago

    Could the Tokenizer's source code be made available? I'm trying to solve this in Python first and since it's not available i'm hand-writing my own.

  • Custom User Avatar
    • gh314
    • commented on " Distance Between Two Points in a Plane and in the Space." kumite
    • 9 years ago

    thanks. i really like list comprehensions and generator expressions so i wanted to apply them to this case.

  • Custom User Avatar
    • pemn
    • commented on " Distance Between Two Points in a Plane and in the Space." kumite
    • 9 years ago

    Nice! I love one liners. Expecially when they are an upgrade with no downsides like this one.

  • Custom User Avatar
    • gh314
    • commented on "Befunge Interpreter" kata
    • 9 years ago

    Run the code locally with some debugging messages to see why it times out, i.e. an infinite loop or something. to see what code is being run just do a console.log(code) or print(code) or whatever within the interpret function.

  • Custom User Avatar
    • gh314
    • commented on "My smallest code interpreter (aka Brainf**k)" kata
    • 9 years ago
    $ python2
    Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 26 2016, 12:10:39) 
    [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> input = 10
    >>> ^D
    $ python3
    Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 26 2016, 10:47:25) 
    [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> input = 10
    >>> ^D
    

    Afaik input is no longer a reserved keyword in python
    it may have been when you commented though.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...