Smort

• ###### sosek108commented on "Take a Ten Minutes Walk" python solution

this is my first solution. but i feel it is O(5n) and with simple for .. you can do it just O(n)

• ###### SuperDooperCodercommented on "Take a Ten Minutes Walk" python solution

I feel more dumper than I actually is... after seeing this solution

Nice

• ###### RetroJimmyXcommented on "Take a Ten Minutes Walk" python solution

I compared against my solution and you got the 'e' and 'w' the wrong way round.

• ###### saudiGuycreated an issue for "Calculating Expected Utility" kata

Python: Random tests are vulnerable to input modification

• ###### Yuri561commented on "Find the capitals" python solution

this is clean i was thinking using the range function too

• ###### AnaSSSScommented on "Take a Ten Minutes Walk" python solution

I have almost the same solution, but thought I had to have "or False" after that. Didn't know I could just write it like this. :)

• ###### ArturoMozzafiatocommented on "Take a Ten Minutes Walk" python solution

It's not optimal, you are right! But actually, it only needs to iterate through the list 4 times. The len() method in python does not need to iterate through the array to find the length, but python caches the length in an attribute!

• ###### jminchew97commented on "Take a Ten Minutes Walk" python solution

Very clever, smart thinking. Didnt even realise they would all have to be equal to get back to same spot facepalm.

• ###### nevvyncommented on "Take a Ten Minutes Walk" python solution

Less efficient than it could have been, but given the max length of the walk, probably not worth worrying about here.
In general x times the work when not needed is not what you should aspire to.

• ###### MatuMikeyscommented on "Take a Ten Minutes Walk" python solution

this iterates through the list a total of 5 times so while it looks pythonic, it's not optimal. But a very readable solution nonetheless :).

• ###### Varkolincommented on "Convert boolean values to strings 'Yes' or 'No'." python solution

I think that solution so clever.

• ###### jennymphocommented on "Take a Ten Minutes Walk" python solution

this is very clever.. this makes it sounds like the exercise is easy bwhen i built something so complicated to achieve the same result!!

• ###### killergirl231commented on "Convert boolean values to strings 'Yes' or 'No'." python solution

I really admire the way you approach problem