• 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
d0n14 Avatar
Name:Jakub Wasilewski
Clan:Unknown
Member Since:Jul 2016
Last Seen:Mar 2020
Profiles:
    Following:2
    Followers:3
    Allies:1
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (119)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • hobovsky
      • resolved an issue on "Count ones in a segment" kata
      • 4 months ago

      Your solution being too slow is not a kata issue.

      Note that inputs in this kata can be very large numbers, like count_ones(189700847246574, 320377134968482). Your current solution cannot handle numbers this big. It is even written in the description.

    • Custom User Avatar
      • innerloop
      • created an issue for "Count ones in a segment" kata
      • 4 months ago

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

    • Custom User Avatar
      • Mr.Shaydix
      • commented on "Count ones in a segment" kata
      • 8 months ago

      A hundred lines...
      But performance seems to be just fine: my program counted the number of all ones from 1 to 999999999999999999 instantly.

      It was a very interesting kata, I liked it.
      Solved the task using permutations with repetition.

    • Custom User Avatar
      • KayleighWasTaken
      • created a suggestion for "Count ones in a segment" kata
      • 9 months ago

      Scala translation

    • Custom User Avatar
      • ahmet_popaj
      • commented on "Count ones in a segment" kata
      • 10 months ago

      Nice kata, great to practice with, well done.

    • Custom User Avatar
      • Chrono79
      • commented on "Count ones in a segment" kata
      • 2 years ago

      Unless description was changed:

      ... between 'left' and 'right' (including both)

    • Custom User Avatar
      • neerajgopal
      • commented on "Count ones in a segment" kata
      • 2 years ago

      Heads up. Both left and right are included in the count. I wasted nearly an hour wondering why my result was off by a tiny amount

    • Custom User Avatar
      • Pietryczko
      • commented on "Count ones in a segment" kata
      • 3 years ago

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

    • Custom User Avatar
      • akar-0
      • created a suggestion for "Count ones in a segment" kata
      • 3 years ago

      D translation

    • Custom User Avatar
      • cwps
      • created a suggestion for "Count ones in a segment" kata
      • 3 years ago

      PHP Translation. Please review and approve.

    • Custom User Avatar
      • dfhwze
      • resolved a suggestion on "Count ones in a segment" kata
      • 3 years ago

      approved

    • Custom User Avatar
      • akar-0
      • resolved a suggestion on "Count ones in a segment" kata
      • 3 years ago

      Approved

    • Custom User Avatar
      • sid114
      • created a suggestion for "Count ones in a segment" kata
      • 3 years ago

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

    • Custom User Avatar
      • dfhwze
      • resolved a suggestion on "Count ones in a segment" kata
      • 3 years ago

      approved

    • Custom User Avatar
      • dfhwze
      • resolved a suggestion on "Count ones in a segment" kata
      • 3 years ago

      approved

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...