• craigvidlercommented on "Two Sum" python solution

Should be the top answer! I did it yesterday on Leetcode and started off brute forcing with nested `for` loops (like the top answer here), but found out how inefficient that is. This is the given solution there btw (which also has an explanation I learned a lot from).

• Madjoszcommented on "Minimum Steps (Array Series #6)" java solution

No, it will fail with an `ArrayIndexOutOfBoundsException`.

• wishpathcommented on "CamelCase to underscore" java solution

my face reading this be like: [^_-]

• bcstrykercommented on "Two Sum" python solution

It means that by snydergd's definition and mine, your description of this solution makes it clever as it is efficient, doesn't use obscure language features and can be used in prod. If you feel like this solution is as you described it and is not clever, your definition of clever seems to be a bad definition.

• MurtajizMehdicommented on "I love you, a little , a lot, passionately ... not at all" java solution

I'm so mad I didn't think of this lol

• RileyHuntercommented on "Two Sum" python solution

The `in` operator has an average-case time complexity of `O(1)` when applied to dictionaries in Python, and this solution therefore has an overall average-case time complexity of `O(n)`.

• ProgerDreamercommented on "Two Sum" python solution

Nice solution. By the way, I have a question - is this solution O(n^2) (one n from loop and another from 'in' operator), or it is more efficient?

Big Brain

• kylelicommented on "Help the bookseller !" python solution

Could be people copying answers they want to dissect and understand better and then clicking "Submit" to run against the attempt test cases instead of forking them.

return
is incorrect

• rm76commented on "Credit card issuer checking" python solution

Beautiful layout!

• Arsenatorcommented on "Help the bookseller !" python solution

I think when they were unable to make it, unlocked solutions and copied to see how it works

It's goood

cheating

• FominHSEcommented on "I love you, a little , a lot, passionately ... not at all" java solution

Very interesting solution