当前位置:网站首页>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”.
边栏推荐
- 102. 最佳牛围栏
- uniapp 去掉默认导航栏
- 掌握Redis的Sentinel哨兵原理,可助你拿到25k的offer
- TiKV & TiFlash 加速复杂业务查询丨TiFlash 应用实践
- Looking at the ecological potential of Hongmeng OS from the evolution of MatePad Pro
- 高效的组织信息共享知识库是一种宝贵的资源
- leetcode:202. 快乐数
- 出海,是泡泡玛特的“解药”吗?
- How ArkUI adapter somehow the screen
- 华为、联想、北汽等入选工信部“企业数字化转型和安全能力提升”首批实训基地
猜你喜欢
随机推荐
ORACLE CLOUD 在国内有数据中心吗?
J9数字虚拟论:元宇宙的潜力:一股推动社会进步的力量
2年开发经验去面试,吊打面试官,即将面试的程序员这些笔记建议复习
面试突击71:GET 和 POST 有什么区别?
Adobe是什么?
通俗理解apt-get 和pip的区别是什么
面试突击:什么是粘包和半包?怎么解决?
Halcon 小笔记 C# 图片是否有效
怎么在opengauss中进行测试自己添加的新函数的性能(循环n次的运行时间)?
Description of the functional scenario of "collective storage and general governance" in the data center
security加密解密
浅谈Service Mesh对业务系统的价值
双指针/滑动窗口问题
Excuse me this hologres dimension table is cached?How to Finished
protobuf 反射使用总结
EasyExcel实现动态列解析和存表
基于DMS的数仓智能运维服务,知多少?
LeetCode·72.编辑距离·动态规划
《社会企业开展应聘文职人员培训规范》团体标准在新华书店上架
TypeScript文件的编译执行









