摘要: 题目描述 We have a knapsack of integral capacity and some objects of assorted integral sizes. We attempt to fill the knapsack up, but unfortunately, we ar 阅读全文
posted @ 2021-04-12 20:07 UpMing 阅读(265) 评论(0) 推荐(1)
摘要: 题目描述 A group of people are standing in a line. Each person has a distinct height. You would like to count the number of unordered pairs of people in t 阅读全文
posted @ 2021-04-12 14:58 UpMing 阅读(265) 评论(0) 推荐(0)
摘要: 题目描述 You are given n strings, each a permutation of the first k upper-case letters of the alphabet.String s is a subsequence of string t if and only i 阅读全文
posted @ 2021-04-12 12:49 UpMing 阅读(251) 评论(0) 推荐(0)
摘要: 题目描述 Noah suggests the following card game: You are given a deck of cards, each with a distinct positive integer value written on it. The cards are sh 阅读全文
posted @ 2021-04-12 07:46 UpMing 阅读(321) 评论(0) 推荐(1)