HackerEarth Problem Real Solution?

Revision en3, by profesir, 2020-08-21 16:57:58

Quetion link- (Easy Sum Set Problem)[https://www.hackerearth.com/practice/algorithms/searching/linear-search/practice-problems/algorithm/easy-sum-set-problem-7e6841ca/description]

Solution for Best Submission — https://www.hackerearth.com/submission/45205049

For this test case:- 2 1 2 3 3 4 8 Output as by best submission code — 2 Real Answere should be — 2 6 or 2 7

Can anyone please help me with the real solution?

Tags #hackerearth, wrongsolution, #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en5 English profesir 2020-08-21 17:00:35 8
en4 English profesir 2020-08-21 16:58:53 23
en3 English profesir 2020-08-21 16:57:58 10
en2 English profesir 2020-08-21 16:56:51 10
en1 English profesir 2020-08-21 16:56:01 490 Initial revision (published)