Search⌘ K
AI Features

Bulls and Cows

Bulls and Cows compares a secret number with a guess, counting matching digits in place as bulls and misplaced matches as cows, then returns the hint as “xAyB”. Duplicates must be counted correctly.

Statement

You are playing a number guessing game called “Bulls and Cows” with a friend. ...