• ###### sutangucommented on "Determine offspring sex based on genes XX and XY chromosomes" cpp solution

explain what?

• ###### NoviceHackerR007commented on "Determine offspring sex based on genes XX and XY chromosomes" cpp solution

why? can someone explain this?

• ###### Jack Khantcommented on "Deleting vowels in a text (improved version)" kumite

Thank you for the test!

• ###### samisardarzaicommented on "Deleting vowels in a text (improved version)" kumite

its a good idea

• ###### Ciprian Amzacommented on "SynsPie's Python solution for "Largest shape in a grid"" kumite

Oh, I was just playing with tests, you can choose different ranges. I just wanted to have consistent results, that's why I limited the value to 10 or 11.
Using sets helps for merging in this case, yes, but also checking if an element is included in a set is O(1), while checking if an element is included in a list is O(n).
You can read here more about time complexities in python (that's how I learned as well at the beginning): https://wiki.python.org/moin/TimeComplexity

• ###### SynsPiecommented on "SynsPie's Python solution for "Largest shape in a grid"" kumite

Thanks for this, pretty helpful - the logic of using sets seems pretty convienient - I'm assuming this is just to make the merging logic much nicer by allowing us to use a union, but correct me if there are other benefits to this. Only thing is it doesn't seem substantially faster to run, is just changing the length of the grid that can be generated as an input to a more limited range fine (I'm assuming so since this isn't a performance Kata)? Or should I use a different internal solution to allow for larger grids to be used?

• ###### Ciprian Amzacommented on "The Nail" python solution

@SnickersTheCat, you are right, but the description specifies `but you have a friend in judging who has excluded all hopeless initial l values for you`, so a losing value will not be tested.

Very smart!

• ###### Jack Khantcommented on "Deleting vowels in a text (improved version)" kumite

Thank you very much sir, I have now gained experience in more ways the random module can be used and a reliable metric on which method is better (I feel like yours is).

why?

• ###### HerZenXDcommented on "Deleting vowels in a text (improved version)" kumite

i wish i could unsee this

• ###### Ciprian Amzaresolved an issue on "Largest shape in a grid" kata

I think it's solved now.

• ###### Ciprian Amzacommented on "Largest shape in a grid" kata

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

• ###### Ciprian Amzacommented on "Largest shape in a grid" kata

Specifying in the description if values will always be greater than 0 or not should be enough.

• ###### Ciprian Amzacommented on "Sum Strings as Numbers" kata

You should do a manual addition of the two strings (same as you would with pen and paper), without converting them to integer.