• 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
sandalaphon Avatar
Name:Richard PC
Clan:CodeClan
Member Since:Feb 2017
Last Seen:May 2022
Profiles:
Following:182
Followers:184
Allies:180
View Profile Badges
Ad
Promoted
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (42)
  • Replies
  • Authored
  • Needs Resolution
  • Default User Avatar
    • myusercb
    • commented on "Squares sequence" python solution

    Nice, very neatly done. I wish I would have seen it like that, your solution made me realise it's so much more about problem solving that it is about "code" and syntax.

  • Custom User Avatar
    • swarnabhK
    • commented on "Multiplication table" python solution

    Great use of the range function. Creating a range function is O(n) right?

  • Default User Avatar
    • real_me
    • commented on "Multiplication table" python solution

    Yeah!I done same things.

  • Default User Avatar
    • Skoffer
    • commented on "Multiplication table" python solution

    how is this beautiful except all the character are on one line?

  • Custom User Avatar
    • exlawyer
    • commented on "Maximum Product " python solution

    i like it! my way but shoter)

  • Default User Avatar
    • neuman
    • commented on "Multiplication table" python solution

    how much worse is creating a list first then appending all the lists to it? I dont really know about big O. bet he wouldnt approve tho

  • Custom User Avatar
    • Ciprian Amza
    • commented on "Number Format" python solution

    Wow! xD

  • Default User Avatar
    • RealNimrod
    • commented on "Multiplication table" python solution

    Yes, runtime on this solution will be n^2 since they are entering every number 1 by 1 and it's an N * N table which means N^2 items will need to be entered.

  • Default User Avatar
    • arthur2001
    • commented on "Maximum Product " python solution

    I'm not here to quibble. Nice solution whether it is the fastest?(who cares - not me :). Very succinct neat code. Lovely solution. Well done you!

  • Custom User Avatar
    • JChampt
    • commented on "Maximum Product " python solution

    I don't believe max runs through the whole array. max will keep track of the maximum value seen along the way. So the time complexity is to run through the zip list once and spit out the highest product of a*b seen. O(n) time.

    There is an argument to be made on how fast slicing array[1:] is however, as I believe this creates an entire copy of array from the second element on which may take n time to do (although I am not 100% sure of the time complexity of python's slice feature).

  • Default User Avatar
    • os629
    • commented on "Find Screen Size" python solution

    don't prioritize line count over performance.

  • Custom User Avatar
    • ZachNich
    • commented on "Multiplication table" python solution

    What's the big O of this? Is it n2? I'm still unsure of the runtimes of list comprehensions.

  • Custom User Avatar
    • Valerio-dev
    • commented on "Multiplication table" python solution

    what a beautiful solution, I'm not used to using lists comprehensions but it's clear that they are powerful tools.

  • Default User Avatar
    • Richard.B.UK
    • commented on "Polydivisible Numbers" kata

    Same here. That led me completely astray, I started by converting to base 10...

    Back to square 1.

  • Default User Avatar
    • needle_
    • commented on "Multiply by a number, so it becomes a perfect power" python solution

    bro im not the one thats voting so complain somewhere else

  • 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