摘要: Github: LeetCode:https://github.com/cheng102e/LeetCode 洛谷:https://github.com/cheng102e/Luogu CCF:https://github.com/cheng102e/CCF 剑指offer:https://gith 阅读全文
posted @ 2019-07-26 09:30 cheng102e 阅读(292) 评论(0) 推荐(1) 编辑
摘要: LeetCode 1408. String Matching in an Array (数组中的字符串匹配) 题目 链接 https://leetcode.cn/problems/string-matching-in-an-array/ 问题描述 给你一个字符串数组 words ,数组中的每个字符串 阅读全文
posted @ 2022-08-06 10:10 cheng102e 阅读(38) 评论(0) 推荐(0) 编辑
摘要: LeetCode 518. Coin Change 2 (零钱兑换 II) 题目 链接 https://leetcode.cn/problems/coin-change-2/ 问题描述 给你一个整数数组 coins 表示不同面额的硬币,另给一个整数 amount 表示总金额。 请你计算并返回可以凑成 阅读全文
posted @ 2022-07-01 16:53 cheng102e 阅读(22) 评论(0) 推荐(0) 编辑
摘要: LeetCode 494. Target Sum (目标和) 题目 链接 https://leetcode.cn/problems/target-sum/ 问题描述 给你一个整数数组 nums 和一个整数 target 。 向数组中的每个整数前添加 '+' 或 '-' ,然后串联起所有整数,可以构造 阅读全文
posted @ 2022-06-30 16:45 cheng102e 阅读(42) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1049. Last Stone Weight II (最后一块石头的重量 II) 题目 链接 https://leetcode.cn/problems/last-stone-weight-ii/ 问题描述 有一堆石头,用整数数组 stones 表示。其中 stones[i] 表示 阅读全文
posted @ 2022-06-30 15:25 cheng102e 阅读(33) 评论(0) 推荐(0) 编辑
摘要: LeetCode 416. Partition Equal Subset Sum (分割等和子集) 题目 链接 https://leetcode.cn/problems/partition-equal-subset-sum/ 问题描述 给你一个 只包含正整数 的 非空 数组 nums 。请你判断是否 阅读全文
posted @ 2022-06-29 11:36 cheng102e 阅读(21) 评论(0) 推荐(0) 编辑
摘要: LeetCode 96. Unique Binary Search Trees (不同的二叉搜索树) 题目 链接 https://leetcode.cn/problems/unique-binary-search-trees/ 问题描述 给你一个整数 n ,求恰由 n 个节点组成且节点值从 1 到 阅读全文
posted @ 2022-06-28 22:19 cheng102e 阅读(15) 评论(0) 推荐(0) 编辑
摘要: LeetCode 343. Integer Break (整数拆分) 题目 链接 https://leetcode.cn/problems/integer-break/ 问题描述 给定一个正整数 n ,将其拆分为 k 个 正整数 的和( k >= 2 ),并使这些整数的乘积最大化。 返回 你可以获得 阅读全文
posted @ 2022-06-28 22:10 cheng102e 阅读(19) 评论(0) 推荐(0) 编辑
摘要: LeetCode 56. Merge Intervals (合并区间) 题目 链接 https://leetcode.cn/problems/merge-intervals/ 问题描述 以数组 intervals 表示若干个区间的集合,其中单个区间为 intervals[i] = [starti, 阅读全文
posted @ 2022-06-28 20:10 cheng102e 阅读(19) 评论(0) 推荐(0) 编辑
摘要: LeetCode 738. Monotone Increasing Digits (单调递增的数字) 题目 链接 https://leetcode.cn/problems/monotone-increasing-digits/ 问题描述 当且仅当每个相邻位数上的数字 x 和 y 满足 x <= y  阅读全文
posted @ 2022-06-28 17:20 cheng102e 阅读(16) 评论(0) 推荐(0) 编辑
摘要: title: date: 2022-06-28 16:23:00 tags: categories: LeetCode LeetCode 763. Partition Labels (划分字母区间) 题目 链接 https://leetcode.cn/problems/partition-label 阅读全文
posted @ 2022-06-28 16:35 cheng102e 阅读(17) 评论(0) 推荐(0) 编辑