Code AAJ Kal 3.0

Does anyone think there is problem in several problems?

GEETLUVTST
The sample’s result does not match the statement.
Sample 1 could return {2,4,8} or {2,4,6}.
4 5 2 1 6 should return {4,5}, not {4,6}.

GEETINDW
What should be returned when no valid result?

GEETHATEPRI
statement didn’t mention about how to deal with equal element.

GEETADICHA
Statement is not clear about how to deal with multiple equal minimum? Replace them with zero at the same time or just replace the first one?
Also the sample conflicts with contraints. It saids 1 <= Ai <= 10^5, but Sample 3 gives 10 20 0 40 50

1 Like