We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I'd say it does, at least for larger number of integers(think about real world).
If you have to go trough list 4 times and I have to do it 2 times your program will take twice as much, in worse case scenario.
I think that should be a good part of learning, to make thinks go faster.
And not to say my solution is any faster.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
I'd say it does, at least for larger number of integers(think about real world). If you have to go trough list 4 times and I have to do it 2 times your program will take twice as much, in worse case scenario.
I think that should be a good part of learning, to make thinks go faster. And not to say my solution is any faster.