
背包
涛涛酱
北邮研究僧在读
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【LeetCode 474】 Ones and Zeroes
题目描述Given an array, strs, with strings consisting of only 0s and 1s. Also two integers m and n.Now your task is to find the maximum number of strings that you can form with given m 0s and n 1s. Each 0 and 1 can be used at most once.Example 1:Input: str原创 2020-05-10 22:40:42 · 128 阅读 · 0 评论 -
【LeetCode 518】 Coin Change 2
题目描述You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that amount. You may assume that you have infinite number of each kind of coin.Example 1:Input: amount =原创 2020-05-10 21:13:08 · 170 阅读 · 0 评论