Halloween Sale
Unlock all premium questions for over 30% off
Valid Clock Time Combinations
Medium
Question
You get four integers A, B, C and D, each one a single digit. Put them on a 24-hour digital clock in the form "HH:MM" so that each of the four fills one of the four positions (no digit left out, none used twice), and count how many different times you can show this way. A time counts only if it falls between "00:00" and "23:59", both included. When two arrangements of the digits show the same time, that time is counted once.
...
Asked at:Microsoft
More Microsoft interview questions
- Office Gift Delivery Schedulerhard
- Recent Search History Systemhard
- Largest Shared BST Valuemedium
- Minimum Coins to Cover All Amountsmedium
- Group Elements by Common Propertiesmedium
- Largest Tree Root IDmedium
- Employee Shift Timeline Intervalsmedium
- Count Distinct Elements in Each Windoweasy
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.