• 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
rrit Avatar
Name:Unknown
Clan:RIT
Member Since:Feb 2017
Last Seen:May 2017
Profiles:
    Following:99
    Followers:99
    Allies:99
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (13)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • myjinxin2015
      • commented on "Simple Fun #159: Middle Permutation" kata
      • 8 years ago

      brute force solution should not pass the tests. try to finding the law and make a clever solution ;-)

    • Custom User Avatar
      • rrit
      • commented on "Simple Fun #159: Middle Permutation" kata
      • 8 years ago

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

    • Custom User Avatar
      • smolen
      • commented on "Tom's Allergies" kata
      • 8 years ago

      PHP version!Cheers

    • Custom User Avatar
      • GiacomoSorbi
      • commented on "Tom's Allergies" kata
      • 8 years ago

      I concur, it should be used more often for this kind of neat katas :)

    • Custom User Avatar
      • smolen
      • commented on "Tom's Allergies" kata
      • 8 years ago

      @BrianLusina you have made cool kata,thanks!

      IMO add puzzle tag ;D

    • Custom User Avatar
      • Lusina
      • commented on "Tom's Allergies" kata
      • 8 years ago

      Noted. Crystal translation approved. :+1:

    • Custom User Avatar
      • Lusina
      • commented on "Tom's Allergies" kata
      • 8 years ago

      Nope, just the same error message and the same type of exception is thrown for each data type that is not an integer.

    • Custom User Avatar
      • Lusina
      • commented on "Tom's Allergies" kata
      • 8 years ago

      Noted and updated. Thank you

    • Custom User Avatar
      • tdsimao
      • created a suggestion for "Tom's Allergies" kata
      • 8 years ago

      The second example should be:

      Allergies(255).allergies()

      this way the description don't give any hints about the implementation.

    • Custom User Avatar
      • chrisdawgr
      • commented on "Tom's Allergies" kata
      • 8 years ago

      In python the instruction example says says:
      allergies = Allergies(0)
      allergies.is_allergic_to('peanuts') = True

      In the test it says:
      allergies = Allergies(0)
      allergies.is_allergic_to('peanuts') = False

    • Custom User Avatar
      • GiacomoSorbi
      • commented on "Tom's Allergies" kata
      • 8 years ago

      Crystal translation kumited too; you might notice the tests for the type missing, but they are kinda pointless in a statically typed language.

      The rest is all there :)

    • Custom User Avatar
      • codeRenk
      • created a question for "Tom's Allergies" kata
      • 8 years ago

      My code works fine except for the tests where it's supposed to throw a type error. I've tested the code in my IDE (PyScripter) with all the invalid data types I can think of and it always throws a type error there, but apparently it's not doing it in the kata tests. Is there something I'm missing? Is each invalid data type supposed to show a specific error message?

    • Custom User Avatar
      • rrit
      • commented on "Tom's Allergies" kata
      • 8 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...