Winter SalePremium questions, over 25% offUnlock all premium questions for over 25% 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
- Integer to English Words Convertermedium
- Binary Search Floor Variationmedium
- Find Grid Word Pathmedium
- Calculate Total Round-Robin Waiting Timemedium
- Recipes From Available Ingredientseasy
- Longest Proper Prefix And Suffixmedium
- Minimum Flips for Symmetric Gridmedium
- Largest Square from Mixed Tilesmedium
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.