Nice

When I write it out by hand, I see that I must simplify the equation. Laying it out in Python, not so much. It is simplifying the equation, ffs.

Gotcha and makes sense. I have a bit of those. Thanks

That is one of the differences between python 2 and 3. I used python 2 back then.

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

Wow. Excellent!!

O(n) if pos is bounded or constant (say, you always call it to find the 3rd smallest element of a list, no matter the size of it). But O(n log(n)) average case, like sorting.

Beautiful :O!!

Namely, here: https://docs.python.org/3/library/stdtypes.html#set

check the api docs?

Not all letters in 'hello' are present in 'hi'; so it's false.

I don't understand where do you think the problem is.

Thank you for your comment anyway.

This is not correct. What if arr[0] is 'hi' and arr[1] is 'hello'? Edit: this example is not valid

if you subtract 97 inside the first expression, yes

edit: errr... not sure what you really mean. Let's say, there is a link, yes

Nice

When I write it out by hand, I see that I must simplify the equation. Laying it out in Python, not so much. It is simplifying the equation, ffs.

Gotcha and makes sense. I have a bit of those. Thanks

That is one of the differences between python 2 and 3. I used python 2 back then.

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

Wow. Excellent!!

O(n) if pos is bounded or constant (say, you always call it to find the 3rd smallest element of a list, no matter the size of it).

But O(n log(n)) average case, like sorting.

Beautiful :O!!

Namely, here: https://docs.python.org/3/library/stdtypes.html#set

check the api docs?

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

Not all letters in 'hello' are present in 'hi'; so it's false.

I don't understand where do you think the problem is.

Thank you for your comment anyway.

This is not correct. What if arr[0] is 'hi' and arr[1] is 'hello'?

Edit: this example is not valid

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

if you subtract 97 inside the first expression, yes

edit: errr... not sure what you really mean. Let's say, there is a link, yes

## Loading more items...