• 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
TijnD Avatar
Name:Unknown
Clan:Unknown
Member Since:Jan 2020
Last Seen:Oct 2023
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (8)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • TijnD
      • commented on "Responsible Drinking" kata
      • 5 years ago

      There probably are more solutions, but yes that is like how I would do it

    • Custom User Avatar
      • InnuendoX3
      • commented on "Responsible Drinking" kata
      • 5 years ago

      Thank you @albertogcmr!!
      I didn't know that, I was printing too.

    • Custom User Avatar
      • slingaxesf
      • commented on "Responsible Drinking" kata
      • 5 years ago

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

    • Custom User Avatar
      • slingaxesf
      • commented on "Responsible Drinking" kata
      • 5 years ago

      I don't see where you are handling the condition where an order uses AND to join two different types of drinks.Like where it tests for "2 of x and 1 of y".

    • Custom User Avatar
      • Avataw
      • commented on "Responsible Drinking" kata
      • 5 years ago

      Kotlin Translation

    • Custom User Avatar
      • TijnD
      • commented on "Responsible Drinking" kata
      • 5 years ago

      Edit: I misunderstood you in the first place. It worked now. Thanks!

    • Custom User Avatar
      • Blind4Basics
      • commented on "Responsible Drinking" kata
      • 5 years ago

      print the input to the console, to see what you're doing wrong.

    • Custom User Avatar
      • TijnD
      • commented on "Responsible Drinking" kata
      • 5 years ago

      I have a problem with this kata. It is going well for every example, except for the 2nd. I get this error: '2 glasses of water' should equal '3 glasses of water'.
      Is this an excpetion I should take care of before it is going to work? If yes, what exception is it?
      Every other example it passes. Thanks in advance!

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...