• 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
cmgerber Avatar
Name:Colin Gerber
Clan:Unknown
Skills:python, javascript
Member Since:Feb 2014
Last Seen:Jun 2021
Profiles:
Following:0
Followers:26
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies (12)
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • ogryzek
    • resolved an issue on "Color Ghost" kata
    • 11 years ago

    Yeah, good call. I updated the tests to check for each color. What are the chances of 1 of the 4 possible colors not occurring among 100 ghosts?

  • Custom User Avatar
    • FesterBesterTester
    • commented on "Color Ghost" kata
    • 11 years ago

    Even better would be to test that each color occurs with roughly even frequency. Otherwise, solutions that can return any color, but that favor certain colors, will pass.

  • Custom User Avatar
    • wthit56
    • commented on "Color Ghost" kata
    • 11 years ago

    I wrote a cheat solution to demostrate this: http://www.codewars.com/kata/reviews/53f1017634b84bb1e7000113/groups/53f34736b572bb12cc001252

  • Custom User Avatar
    • electricjay
    • commented on "Generating Permutations" kata
    • 11 years ago

    @cmgerber:
    Your itertools solution fails because the function returns an iterator rather than a generator. All generators are iterators, but not all iterators are generators.

    I have updated the description of the kata to emphasize this.

    I have also disabled itertools.permutations as it makes the kata too easy :)

    @xcthulhu:
    the permutations function only needs to take one argument - the 2nd argument being passed was a bug which has since been corrected.

  • Custom User Avatar
    • xcthulhu
    • commented on "Generating Permutations" kata
    • 11 years ago

    @cmgerber: I think electricjay's permutations takes a second argument, which behaves differently than the builtin's second argument.

    Personally, I'd rather electricjay's permutations function have the same API as the builtin, but then this exercise would be trivial...

  • Custom User Avatar
    • Svenito
    • commented on "Character frequency" kata
    • 11 years ago

    Absolutely. The actual correct answer whould be a list of tuples. I will update the comment. Thanks

  • Custom User Avatar
    • electricjay
    • commented on "Generating Permutations" kata
    • 11 years ago

    There was a bug in the validation routine.

    I have published a new version. Give it a try.

  • Custom User Avatar
    • ferlio
    • commented on "Did I Finished my Sudoku?" kata
    • 11 years ago

    It seems that there are no test-cases for checking unique values on columns.

    Could you please add some?

  • Custom User Avatar
    • xcthulhu
    • commented on "I Liked the SQL Better..." kata
    • 11 years ago

    Moreover, codewars adds some code before the text fixture; this is probably why its saying line 17. Still, I can't reproduce this error...

  • Custom User Avatar
    • xcthulhu
    • commented on "I Liked the SQL Better..." kata
    • 11 years ago

    The error is coming from the test suite. Not sure why this is happening...

  • Custom User Avatar
    • suuuzi
    • commented on "Did I Finished my Sudoku?" kata
    • 11 years ago

    thank you!
    thinking c++ (on work) and trying write python haha

    all issues fixed. :)

  • Custom User Avatar
    • jhoffner
    • resolved an issue on "Bug Reports" topic
    • 11 years ago

    They were, we just missed adding Python to the profile view. Should be fixed now. :smile:

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...