What's the minimum length of a subsequence? Lets say that A = 98 and B = 150; wil


#1

What’s the minimum length of a subsequence? Lets say that A = 98 and B = 150; will (just) the number 100 satisfy the requirement? Or is the minimum length of a subsequence at least >= 2?

Thanks.


#2

No. 100 does satisfy the requirement.
length of a subsequence at least >= 1


#3

Anshuman Singh Thanks Anshuman. I figured out what the problem was. I forgot one corner case.