• 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
functional programmer Avatar
Name:Unknown
Clan:Unknown
Member Since:Nov 2022
Last Seen:Oct 2023
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (10)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • tykbry
      • commented on "Consecutive letters" cpp solution
      • 2 months ago

      Not O(log N)
      you are still sorting wich is O(N log N)

      And O(2N) is O(N), in the usual notation.

    • Custom User Avatar
      • ruynox
      • commented on "Consecutive letters" cpp solution
      • 2 years ago

      How?

    • Custom User Avatar
      • functional programmer
      • commented on "Consecutive letters" cpp solution
      • 2 years ago

      O(n log n) solution, this can be completed in O(n).

    • Custom User Avatar
      • functional programmer
      • commented on "Consecutive letters" cpp solution
      • 2 years ago

      O(n log n) solution. Not really sure I'd flag that as best practice.

    • Custom User Avatar
      • functional programmer
      • commented on "Jumping Number (Special Numbers Series #4)" cpp solution
      • 2 years ago

      Not sure why some are suggesting O(log n). Binary search only works on an ordered set. These numbers are not ordered. The fastest you can possibly achieve this is O(n). You must iterate through all the digits to ensure even the very last digit is within the rules.

    • Custom User Avatar
      • dondowoldo
      • commented on "Buying a car" kata
      • 2 years ago

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

    • Custom User Avatar
      • hobovsky
      • commented on "Buying a car" kata
      • 2 years ago

      Note there is no formattign issues is formatting is used: https://docs.codewars.com/references/markdown#code-block

    • Custom User Avatar
      • IRUKYEO
      • commented on "Buying a car" kata
      • 2 years ago

      i need to use malloc

    • Custom User Avatar
      • functional programmer
      • commented on "Buying a car" kata
      • 2 years ago

      Note due to formating issues codewars changes some of my * to italics.

    • Custom User Avatar
      • functional programmer
      • created an issue for "Buying a car" kata
      • 2 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...