What exactly do people mean by corner cases
what could be a possible corner cases for these constraints ??
1<=test<=100;
0<=array length<=50;
1<=size of k<=100000000; where k is an element of array
It depennds the one question. It usually means some case where normally people will not think might fall. Suppose in integer division people may not think division by 0, but it is a corner case.
1 Like
Each variable having either upper bound values or lower bound values.
as you mentioned your constraints, one example could be
test=100: size=100: each element =100000000
another can be:
test=1 size=0
1 Like
Each variable having either upper bound values or lower bound values.
as you mentioned your constraints, one example could be
test=100: size=100: each element =100000000
another can be:
test=1 size=0