Home
Questions
About Us
Contact Us
Sign In
...let
John
help you code
Search
How to find an O(n) solution and Implement the O(n) solution
Asked by:
iyer
Aug 09, 2016, 22:06
Description
Given a set of numbers -50 to 50, find all pairs that add up to a certain sum that is passed in. What's the O notation for what you just wrote? Can you make it faster? Can you find an
O(n)
solution? Implement the
O(n)
solution
Submit Answer
×
Please
Login
to Answer this question...
0 Answer
Answer :
(You can use your own HTML answer along with your code and other markups)
Code
Preview
Cancel »