HackerEarth Problem Real Solution?

Правка en5, от profesir, 2020-08-21 17:00:35

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 Answer should be — 2 6 or 2 7

Can anyone please help me with the real solution?

Теги #hackerearth, wrongsolution, #help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский profesir 2020-08-21 17:00:35 8
en4 Английский profesir 2020-08-21 16:58:53 23
en3 Английский profesir 2020-08-21 16:57:58 10
en2 Английский profesir 2020-08-21 16:56:51 10
en1 Английский profesir 2020-08-21 16:56:01 490 Initial revision (published)