All Problems
Problem #72 MEDIUM

The Cracked Safe Combination

Microsoft Apple Number Theory Logic

Problem Statement

A combination lock has digits 0–9 on each of its four wheels. The correct combination is a 4-digit number with the following properties: the number is a palindrome (reads the same forwards and backwards), all four digits are different, the sum of all four digits is 20, and the number is divisible by 11. Find all valid combinations.

Answer & Quick Explanation

Logged-in Users Only

You must be logged in to view the answer and check your solution. Signing up is free and takes less than a minute.

Detailed Editorial Solution

Detailed Editorial Solution is Premium

Unlock detailed step-by-step mathematical proofs, logic explanations, and company-specific interview preparation pathways.