Who will win?

You are given the string of a's and b's eg. aaabbbaa and some threshold value t which indicates the threshold point, eg if count of a's or count of b's will become equal to t then whose count will be equal to t eg. a or b will won that match , and next game will continue further...

Author: Amit Khandelwal 1
Login to Answer
Sort By:
My Answer