I don't know why it need return "0A0B" when secret="1",guess="0"??
My answer is "0A1B".
I think because 0 does not equals to 1,so I should set B=1.so why we should set B=0??
You could not set B=1 unless 0 is in the wrong position.
For example: secret='10', guess='02', answer: '0A1B'(no bull, the cows is 0).
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.