上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页
摘要: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/k-th-smallest-in-lexicographical-order 题目描述 给定整数 n 和 k,返回 [1, n] 中字典序第 k 小的数字。 示例 1: 输入: n = 13, k 阅读全文
posted @ 2022-03-23 10:31 过客匆匆,沉沉浮浮 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/longest-valid-parentheses 题目描述 给你一个只包含 '(' 和 ')' 的字符串,找出最长有效(格式正确且连续)括号子串的长度。 示例 1: 输入:s = "(()"输出: 阅读全文
posted @ 2022-03-22 09:59 过客匆匆,沉沉浮浮 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/remove-colored-pieces-if-both-neighbors-are-the-same-color 题目描述 总共有 n 个颜色片段排成一列,每个颜色片段要么是 'A' 要么是 ' 阅读全文
posted @ 2022-03-22 08:32 过客匆匆,沉沉浮浮 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/the-time-when-the-network-becomes-idle 题目描述 给你一个有 n 个服务器的计算机网络,服务器编号为 0 到 n - 1 。同时给你一个二维整数数组 edges 阅读全文
posted @ 2022-03-21 10:11 过客匆匆,沉沉浮浮 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/search-in-rotated-sorted-array 题目描述 整数数组 nums 按升序排列,数组中的值 互不相同 。 在传递给函数之前,nums 在预先未知的某个下标 k(0 <= k 阅读全文
posted @ 2022-03-19 14:50 过客匆匆,沉沉浮浮 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/simple-bank-system 题目描述 你的任务是为一个很受欢迎的银行设计一款程序,以自动化执行所有传入的交易(转账,存款和取款)。银行共有 n 个账户,编号从 1 到 n 。每个账号的初始 阅读全文
posted @ 2022-03-18 08:44 过客匆匆,沉沉浮浮 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/substring-with-concatenation-of-all-words 题目描述 给定一个字符串 s 和一些 长度相同 的单词 words 。找出 s 中恰好可以由 words 中所有单 阅读全文
posted @ 2022-03-17 15:05 过客匆匆,沉沉浮浮 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/next-permutation 题目描述 整数数组的一个 排列 就是将其所有成员以序列或线性顺序排列。 例如,arr = [1,2,3] ,以下这些都可以视作 arr 的排列:[1,2,3]、[1 阅读全文
posted @ 2022-03-17 11:43 过客匆匆,沉沉浮浮 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/divide-two-integers 题目描述 给定两个整数,被除数 dividend 和除数 divisor。将两数相除,要求不使用乘法、除法和 mod 运算符。 返回被除数 dividend  阅读全文
posted @ 2022-03-16 17:23 过客匆匆,沉沉浮浮 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/all-oone-data-structure 题目描述 请你设计一个用于存储字符串计数的数据结构,并能够返回计数最小和最大的字符串。 实现 AllOne 类: AllOne() 初始化数据结构的对 阅读全文
posted @ 2022-03-16 15:01 过客匆匆,沉沉浮浮 阅读(77) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页
点击右上角即可分享
微信分享提示