Summer sale! Get 10% off annual plan with the code SUMMERSALE23, grab your discount today! Check out other promotions

Digital Clock

Yangshun Tay
Yangshun TayEx-Meta Staff Engineer
Recommended duration to spend during interviews
25 mins
Users completed

Create a widget that renders the current time in HH:MM:SS format using a 7-segment digital display. You are free to choose to use 12-hour or a 24-hour display.

Here's an example of a digital clock. Each digit needs to be rendered by individual segments, but you can exercise your creativity by choosing different colors and styling it differently. It should however still function as a clock, allowing the user to read the time.

Digital clock example


Premium FeaturePurchase premium to see companies which ask this question.
View plans

Loading editor