• 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
joshra Avatar
Name:Unknown
Clan:Unknown
Member Since:May 2018
Last Seen:Mar 2025
Profiles:
Following:0
Followers:13
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (244)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • SigmaAkainu
    • commented on "If you can't sleep, just count sheep!!" kata
    • last month

    this kata was so sheepishly easy i went to sleep

  • Custom User Avatar
    • BobtheLantern
    • commented on "If you can't sleep, just count sheep!!" kata
    • 3 months ago

    If only there were some sort of warning about that happening when you click that button.

  • Custom User Avatar
    • hobovsky
    • commented on "If you can't sleep, just count sheep!!" kata
    • 3 months ago

    I can see that the OP unlocked solutions to this kata.

    You do not get points if you click "Show solutions".

  • Custom User Avatar
    • BobtheLantern
    • commented on "If you can't sleep, just count sheep!!" kata
    • 3 months ago

    Sometimes it takes a little while to refresh your honor total. I see that you solved this one in two languages, though. You only get honor the first time you solve a kata in any language, you don't get honor for solving it in additional languages.

  • Custom User Avatar
    • CaptainLiuMing
    • commented on "If you can't sleep, just count sheep!!" kata
    • 3 months ago

    sometimes i submit a kata but i didn't get honors????

  • Custom User Avatar
    • Dima_Kondrovo
    • commented on "If you can't sleep, just count sheep!!" kata
    • 4 months ago

    Понравилось это задание. Решил через цикл for.

  • Custom User Avatar
    • Chrono79
    • commented on "If you can't sleep, just count sheep!!" kata
    • 12 months ago

    Read this: https://docs.codewars.com/training/training-example and this: https://docs.codewars.com/training/troubleshooting

  • Custom User Avatar
    • Df Melissa
    • commented on "If you can't sleep, just count sheep!!" kata
    • 12 months ago

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

  • Custom User Avatar
    • ejini战神
    • resolved a suggestion on "If you can't sleep, just count sheep!!" kata
    • 12 months ago

    Approved

  • Custom User Avatar
    • Madjosz
    • commented on "If you can't sleep, just count sheep!!" kata
    • 12 months ago

    See How to train on a Codewars kata.

  • Custom User Avatar
    • stellartux
    • created a suggestion for "If you can't sleep, just count sheep!!" kata
    • 12 months ago

    Prolog translation

  • Custom User Avatar
    • RealTinagers
    • commented on "If you can't sleep, just count sheep!!" kata
    • 14 months ago

    Wow, i used 'main' and didnt know why it wasn't work, i was loose so much time. ಥ⁠‿⁠ಥ

  • Custom User Avatar
    • rowcased
    • commented on "If you can't sleep, just count sheep!!" kata
    • 16 months ago

    you need to return a value instead of print it

  • Custom User Avatar
    • ppaulojorgemota
    • commented on "If you can't sleep, just count sheep!!" kata
    • 16 months ago

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

  • Custom User Avatar
    • Madjosz
    • commented on "If you can't sleep, just count sheep!!" kata
    • 16 months ago

    Your function name is wrong, it is countSheep with a capital S. Additionally the capitalization of your result is wrong and you have the wrong output for num = 0.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...