milosilic / elements-of-programming-interviews

Automatically exported from code.google.com/p/elements-of-programming-interviews
Other
0 stars 0 forks source link

Patch for /trunk/Subseq_cover.cpp #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Since all the elements in Q is distinct, we would go into this if statement 
only once, so there is no need and will never update a existed value res twice.

Original issue reported on code.google.com by tplee...@gmail.com on 21 Apr 2013 at 8:44

Attachments:

GoogleCodeExporter commented 9 years ago
I am not so sure about this one since although all elements in Q are distinct, 
we may have duplicate elements in A such that we may update D.back() which 
means we need to check that.

Original comment by TsungHsi...@gmail.com on 1 May 2013 at 12:31