提示: In the first sample the number already is one-digit — Herald can’t cast a spell. The second test contains number 10. After one casting of a spell it bec...
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add...
You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time your frie...