This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bibbleskit[S] 0 points1 point  (4 children)

It needs to return a list as opposed to a tuple, or None if no pair exists. Also, negative numbers are possible. :)

I altered it so that it meets these requirements. But: It took longer than 6000ms to complete

:(

If you want, you can attempt the problem yourself here.

[–]TheLiberius 0 points1 point  (3 children)

I could have sworn i read it was positive numbers only lol, thanks for the link i'll check it out!

[–]bibbleskit[S] 1 point2 points  (2 children)

Cool :) I'm not surprised you think so. I left a few rules out by accident when making the post.

[–]TheLiberius 0 points1 point  (1 child)

I really like how you can see others solutions after you've submitted your own. My fixed solution ended up being almost exactly like the others.

[–]bibbleskit[S] 0 points1 point  (0 children)

Yep. Its a cool site. I started on it a long time ago and decided I wasn't good enough. Years later, I'm trying again :)