• ###### lahongvycommented on "Keep up the hoop" python solution

That's a lot of brains.

• ###### awesomeadcommented 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

• ###### JoSevladcommented on "Sum of two lowest positive integers" python solution

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

• ###### ManiaPhicommented on "Sum of two lowest positive integers" python solution

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

• ###### l1sekcommented on "Ones and Zeros" python solution

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

very good

• ###### peterkushnircommented on "Ones and Zeros" python solution

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

• ###### sgmeinercommented on "Sum of two lowest positive integers" python solution

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

• ###### danman1979commented 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.

• ###### RB_Analystcommented on "Sum of two lowest positive integers" python solution

how does this account for negative values?

love that

smart ass

• ###### swoopdawoopcommented 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!