当前位置:网站首页>401. Binary Watch
401. Binary Watch
2022-08-03 17:01:00 【51CTO】
A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minutes (0-59).
Each LED represents a zero or one, with the least significant bit on the right.

For example, the above binary watch reads “3:25”.
Given a non-negative integer n which represents the number of LEDs that are currently on, return all possible times the watch could represent.
Example:
Note:
The order of output does not matter.
The hour must not contain a leading zero, for example “01:00” is not valid, it should be “1:00”.
The minute must be consist of two digits and may contain a leading zero, for example “10:2” is not valid, it should be “10:02”.
边栏推荐
猜你喜欢

Interviews are no longer hanged!This is the correct way to open the seven schemes of Redis distributed locks

华为、联想、北汽等入选工信部“企业数字化转型和安全能力提升”首批实训基地

《社会企业开展应聘文职人员培训规范》团体标准在新华书店上架

【Metaverse系列一】元宇宙的奥秘

Description of the functional scenario of "collective storage and general governance" in the data center

“68道 Redis+168道 MySQL”精品面试题(带解析),你背废了吗?

2年开发经验去面试,吊打面试官,即将面试的程序员这些笔记建议复习

Adobe是什么?

node connection mongoose database process

工程仪器设备在线监测管理系统常见问题和注意事项
随机推荐
广告电商系统开发之会员系统板块
C专家编程 第1章 C:穿越时空的迷雾 1.8 ANSI C标准的结构
学会 Arthas,让你 3 年经验掌握 5 年功力!
#yyds干货盘点# 面试必刷TOP101:两个链表的第一个公共结点
华为、联想、北汽等入选工信部“企业数字化转型和安全能力提升”首批实训基地
沃尔沃:这是会“种草”的“安全感”!
C专家编程 第3章 分析C语言的声明 3.6 typedef int x[10]和#define x int[10]的区别
TypeScript的配置文件tsconfig.json
双指针/滑动窗口问题
C语言02、语句、函数
附录A 程序员工作面试的秘密
[Unity Getting Started Plan] Basic Concepts (6) - Sprite Renderer Sprite Renderer
并发高的情况下,试试用ThreadLocalRandom来生成随机数
软考 --- 软件工程(1)概念、开发模型
测试测试测试
超分重建数据集
通用型安全监测数据管理系统
工程仪器设备在线监测管理系统常见问题和注意事项
【无标题】
Selective Search学习笔记