#how does his solution works???

11 messages · Page 1 of 1 (latest)

umbral epochBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

scenic patrol
#

this is 3sum problem, pretty simple

#

but how did his code pass?

#

what if there will be input: [-14,-1,2,3,6,7,8,10]

#

and his target will be 6

#

his front will be 7, and it will always decrease

#

this way, he wont be able to find combination [8, - 14, 6]

#

cause 8 is out of range

#

is there something i am missing?

umbral epochBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.