
leetcode
文章平均质量分 69
leetcode题解,只记录对自己有价值的题目,方便回顾
benoxo
这个作者很懒,什么都没留下…
展开
-
417. Pacific Atlantic Water Flow
Pacific Atlantic Water FlowThere is an m x n rectangular island that borders both the Pacific Ocean and Atlantic Ocean. The Pacific Ocean touches the island’s left and top edges, and the Atlantic Ocean touches the island’s right and bottom edges.The is.原创 2022-05-07 13:46:34 · 246 阅读 · 1 评论 -
416. Partition Equal Subset Sum
题目Given a non-empty array nums containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal.Example 1:Input: nums = [1,5,11,5]Output: trueExplanation: The array can be原创 2022-05-06 11:33:43 · 349 阅读 · 0 评论