There is a bug in the checker code: A : 1 Your function returned the following :


#1

There is a bug in the checker code:
A : 1
Your function returned the following :
[0 1 ]
The expected returned value :

00 + 11 = 1
where a = 0, b=1 A = 1
and the constraint a <= b is met.


#2

Saurabh their is no bug. As 0 does not come in the set of positive integers. The answer [0 1] should not be their.


#3

Sarthak Kapoor 0 is also non negative integer so there is a bug in the accepted answer


#4

There is no bug in the checker code. Actually, it is given that A should be non-negative integer, so A can be equal to 0. But, for a and b, it is given that they should be positive integer; therefore, a > 0 and b > 0. This is because 0 is considered neither negative nor positive.