• 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
IvDen Avatar
Name:Unknown
Clan:Unknown
Member Since:Jan 2018
Last Seen:Oct 2022
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (4)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • sosek108
      • commented on "Count characters in your string" python solution
      • 8 months ago

      it is. But inbuilt iterators are faster than your own loops. Python generators and iterators are written inside interpreter and are much more efficient.

      I tested it out.
      This Version for long text: 0.0077
      Version with my custom loop: 0.0256

    • Custom User Avatar
      • someguyrunning
      • commented on "Count characters in your string" python solution
      • 2 years ago

      ...

    • Custom User Avatar
      • IvDen
      • commented on "Valid Braces" python solution
      • 3 years ago

      if I understand correctly, then in the worst case, here at each iteration up to 6 (3 in condition and 3 in replace) searches are performed on the input string. Looks cool but too much IMO

    • Custom User Avatar
      • IvDen
      • commented on "Count characters in your string" python solution
      • 3 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...