04 2022 档案

摘要:1 题目描述 题目来源: https://leetcode-cn.com/problems/reformat-date 给你一个字符串 date ,它的格式为 Day Month Year ,其中: Day 是集合 {"1st", "2nd", "3rd", "4th", ..., "30th", 阅读全文
posted @ 2022-04-24 20:08 千千寰宇 阅读(125) 评论(0) 推荐(0) 编辑
摘要:1 题目描述 题目来源: https://leetcode-cn.com/problems/binary-gap/ 给定一个正整数 n,找到并返回 n 的二进制表示中两个 相邻 1 之间的 最长距离 。如果不存在两个相邻的 1,返回 0 。 如果只有 0 将两个 1 分隔开(可能不存在 0 ),则认 阅读全文
posted @ 2022-04-24 18:54 千千寰宇 阅读(66) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示