摘要: # [20. 有效的括号](https://leetcode.cn/problems/valid-parentheses) 点击上方,跳转至leetcode ## 题目描述 给定一个只包括 '(',')','{','}','[',']' 的字符串 s ,判断字符串是否有效。 有效字符串需满足: 左括 阅读全文
posted @ 2023-06-21 15:15 野哥李 阅读(8) 评论(0) 推荐(0) 编辑
摘要: # [14. 最长公共前缀](https://leetcode.cn/problems/longest-common-prefix) 点击上方,跳转至Leetcode ## 题目描述 编写一个函数来查找字符串数组中的最长公共前缀。 如果不存在公共前缀,返回空字符串 ""。 示例 1: 输入:strs 阅读全文
posted @ 2023-06-21 15:13 野哥李 阅读(9) 评论(0) 推荐(0) 编辑
摘要: # [13. 罗马数字转整数](https://leetcode.cn/problems/roman-to-integer) 点击上方,跳转至leetcode ## 题目描述 罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。 字符 数值 I 1 V 5 X 10 L 50 C 10 阅读全文
posted @ 2023-06-21 15:08 野哥李 阅读(11) 评论(0) 推荐(0) 编辑
摘要: # [9. 回文数](https://leetcode.cn/problems/palindrome-number) 点击上方,跳转至Leetcode ## 题目描述 给你一个整数 x ,如果 x 是一个回文整数,返回 true ;否则,返回 false 。 回文数是指正序(从左向右)和倒序(从右向 阅读全文
posted @ 2023-06-21 15:06 野哥李 阅读(14) 评论(0) 推荐(0) 编辑
摘要: # [733. 图像渲染](https://leetcode.cn/problems/flood-fill) 点击上方,跳转至leetcode ## 题目描述 有一幅以 m x n 的二维整数数组表示的图画 image ,其中 image[i][j] 表示该图画的像素值大小。 你也被给予三个整数 s 阅读全文
posted @ 2023-06-21 15:04 野哥李 阅读(8) 评论(0) 推荐(0) 编辑
摘要: # [728. 自除数](https://leetcode.cn/problems/self-dividing-numbers) 点击上方,跳转至leetcode ## 题目描述 自除数 是指可以被它包含的每一位数整除的数。 例如,128 是一个 自除数 ,因为 128 % 1 == 0,128 % 阅读全文
posted @ 2023-06-21 15:02 野哥李 阅读(18) 评论(0) 推荐(0) 编辑
摘要: # [724. 寻找数组的中心下标](https://leetcode.cn/problems/find-pivot-index) 点击上方,跳转至leetcode ## 题目描述 给你一个整数数组 nums ,请计算数组的 中心下标 。 数组 中心下标 是数组的一个下标,其左侧所有元素相加的和等于 阅读全文
posted @ 2023-06-21 14:59 野哥李 阅读(32) 评论(0) 推荐(0) 编辑
摘要: # [717. 1 比特与 2 比特字符](https://leetcode.cn/problems/1-bit-and-2-bit-characters) 点击上方,跳转至leetcode ## 题目描述 有两种特殊字符: 第一种字符可以用一比特 0 表示 第二种字符可以用两比特(10 或 11) 阅读全文
posted @ 2023-06-21 14:53 野哥李 阅读(9) 评论(0) 推荐(0) 编辑
摘要: # [709. 转换成小写字母](https://leetcode.cn/problems/to-lower-case) 点击上方跳转至Leetcode ## 题目描述 给你一个字符串 s ,将该字符串中的大写字母转换成相同的小写字母,返回新的字符串。 示例 1: 输入:s = "Hello" 输出 阅读全文
posted @ 2023-06-21 14:50 野哥李 阅读(15) 评论(0) 推荐(0) 编辑
摘要: # [706. 设计哈希映射](https://leetcode.cn/problems/design-hashmap) 点击跳转至leetcode ## 题目描述 不使用任何内建的哈希表库设计一个哈希映射(HashMap)。 实现 MyHashMap 类: MyHashMap() 用空映射初始化对 阅读全文
posted @ 2023-06-21 14:47 野哥李 阅读(14) 评论(0) 推荐(0) 编辑