Bulls and Cows
Medium
Game & Board Simulation
Given a secret and a guess of equal length, print the hint as 'xAyB': x digits are correct in position (bulls), y digits are correct but in the wrong position (cows).
Constraints
1 <= length <= 1000
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.