上一页 1 2 3 4 5 6 7 8 9 10 ··· 44 下一页
摘要: LeetCode 150. Evaluate Reverse Polish Notation (逆波兰表达式求值) 题目 链接 https://leetcode.cn/problems/evaluate-reverse-polish-notation/ 问题描述 根据 逆波兰表示法,求表达式的值。 阅读全文
posted @ 2022-05-27 08:48 cheng102e 阅读(14) 评论(0) 推荐(0) 编辑
摘要: LeetCode 459. Repeated Substring Pattern (重复的子字符串) 题目 链接 https://leetcode.cn/problems/repeated-substring-pattern/ 问题描述 给定一个非空的字符串 s ,检查是否可以通过由它的一个子串重复 阅读全文
posted @ 2022-05-26 11:32 cheng102e 阅读(48) 评论(0) 推荐(0) 编辑
摘要: LeetCode 28. Implement strStr() (实现 strStr()) 题目 链接 问题描述 给你两个字符串 haystack 和 needle ,请你在 haystack 字符串中找出 needle 字符串出现的第一个位置(下标从 0 开始)。如果不存在,则返回 -1 。 说明 阅读全文
posted @ 2022-05-26 11:26 cheng102e 阅读(9) 评论(0) 推荐(0) 编辑
摘要: LeetCode 541. Reverse String II (反转字符串 II) 题目 链接 https://leetcode.cn/problems/reverse-string-ii/ 问题描述 给定一个字符串 s 和一个整数 k,从字符串开头算起,每计数至 2k 个字符,就反转这 2k 字 阅读全文
posted @ 2022-05-19 14:59 cheng102e 阅读(36) 评论(0) 推荐(0) 编辑
摘要: LeetCode 383. Ransom Note (赎金信) 题目 链接 https://leetcode.cn/problems/ransom-note/ 问题描述 给你两个字符串:ransomNote 和 magazine ,判断 ransomNote 能不能由 magazine 里面的字符构 阅读全文
posted @ 2022-05-19 14:19 cheng102e 阅读(35) 评论(0) 推荐(0) 编辑
摘要: LeetCode 454. 4Sum II (四数相加 II) 题目 链接 https://leetcode.cn/problems/4sum-ii/ 问题描述 给你四个整数数组 nums1、nums2、nums3 和 nums4 ,数组长度都是 n ,请你计算有多少个元组 (i, j, k, l) 阅读全文
posted @ 2022-05-19 12:10 cheng102e 阅读(24) 评论(0) 推荐(0) 编辑
摘要: LeetCode 202. Happy Number (快乐数) 题目 链接 https://leetcode.cn/problems/happy-number/ 问题描述 编写一个算法来判断一个数 n 是不是快乐数。 「快乐数」 定义为: 对于一个正整数,每一次将该数替换为它每个位置上的数字的平方 阅读全文
posted @ 2022-05-19 09:17 cheng102e 阅读(19) 评论(0) 推荐(0) 编辑
摘要: LeetCode 349. Intersection of Two Arrays (两个数组的交集) 题目 链接 https://leetcode.cn/problems/intersection-of-two-arrays/ 问题描述 给定两个数组 nums1 和 nums2 ,返回 它们的交集  阅读全文
posted @ 2022-05-19 08:29 cheng102e 阅读(15) 评论(0) 推荐(0) 编辑
摘要: LeetCode 242. Valid Anagram (有效的字母异位词) 题目 链接 https://leetcode.cn/problems/valid-anagram/ 问题描述 给定两个字符串 s 和 t ,编写一个函数来判断 t 是否是 s 的字母异位词。 注意:若 s 和 t 中每个字 阅读全文
posted @ 2022-05-19 08:11 cheng102e 阅读(18) 评论(0) 推荐(0) 编辑
摘要: LeetCode 142.Linked List Cycle II (环形链表 II) 题目 链接 https://leetcode.cn/problems/linked-list-cycle-ii/submissions/ 问题描述 给定一个链表的头节点 head ,返回链表开始入环的第一个节点。 阅读全文
posted @ 2022-05-18 18:17 cheng102e 阅读(17) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 44 下一页