• 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
  • Career
  • Opportunities
    Find your next career challenge – powered by Qualified Jobs
  • 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
  • Log In
  • Sign Up
kjmosher Avatar
Name:Ken Mosher
Clan:RRAMAC
Skills:python, c, c++, svn, tcp/ip
Member Since:Mar 2016
Last Seen:May 2022
Profiles:
Following:22
Followers:34
Allies:6
View Profile Badges
Ad
Promoted
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (373)
  • Replies
  • Authored
  • Needs Resolution
  • Default User Avatar
    • lahongvy
    • commented on "Keep up the hoop" python solution

    That's a lot of brains.

  • Custom User Avatar
    • awesomead
    • commented on "Sum of two lowest positive integers" python solution

    No it is not. "Twice" literally means "two times", which makes it strictly speaking O(2n). Since the factor 2 is a constant, it is ommitted in the actual complexity, making it O(n).
    You might be thinking of nested loops, where the inner loop iterates over the entire array, for every element of the array, making it O(n*n)
    You can read up on the topic here

  • Default User Avatar
    • JoSevlad
    • commented on "Sum of two lowest positive integers" python solution

    Walking through the list twice isn't O(N), it's O(N^2).

  • Custom User Avatar
    • ManiaPhi
    • commented on "Sum of two lowest positive integers" python solution

    I felt the same way when I saw this solution ^_^

  • Custom User Avatar
    • JustACoder58
    • commented on "Create Phone Number" python solution

    string formatting... how did I even forget about this

  • Custom User Avatar
    • l1sek
    • commented on "Ones and Zeros" python solution

    Right? It can be so useful, espeicially parsing some hexs. Mindblowing!

  • Custom User Avatar
    • qa1ex
    • commented on "Create Phone Number" python solution

    very good

  • Default User Avatar
    • peterkushnir
    • commented on "Ones and Zeros" python solution

    map !!!!!!!! So brilliant.

  • Default User Avatar
    • sgmeiner
    • commented on "Sum of two lowest positive integers" python solution

    Yeah, wish they would show completion time for random tests.

  • Default User Avatar
    • danman1979
    • commented on "Sum of two lowest positive integers" python solution

    It doesn't, since there's no need to. As it says in the description, no non-positive values are passed. All values are positive.

  • Default User Avatar
    • RB_Analyst
    • commented on "Sum of two lowest positive integers" python solution

    how does this account for negative values?

  • Default User Avatar
    • AFlockOfToasters
    • commented on "Sum of two lowest positive integers" python solution

    https://itsmycode.com/python-typeerror-nonetype-object-is-not-subscriptable/#:~:text=The%20TypeError%3A%20'NoneType'%20object,it%20returns%20a%20None%20value.

  • Default User Avatar
    • ÇoMBRA
    • commented on "Create Phone Number" python solution

    love that

  • Custom User Avatar
    • VeryHardBit
    • commented on "Count characters in your string" python solution

    smart ass

  • Default User Avatar
    • swoopdawoop
    • commented on "Create Phone Number" python solution

    I was pleased to get it down to a simple f-string, but even then I knew there had to be something simpler than writing ten N-calls. Thanks for helping me learn about unpacking!

  • Loading more items...
  • © 2022 Codewars
  • About
  • API
  • Announcements
  • Privacy
  • Terms
  • Contact
  • powered by

Confirm

  • Cancel
  • Confirm

Collect: kata

Loading collection data...

Add To My Collections
    • View
      Remove Add
    You have not created any collections yet.

    Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.

    Get started now by creating a new collection.

    You must wait until you have earned at least 20 honor before you can create new collections.

Set the name for your new collection. Remember, this is going to be visible by everyone so think of something that others will understand.

Create & Add New Collection