2018算法设计期中项目
题目描述
Suppose there are n facilities and m customers. We wish
to choose:
(1) which of the n facilities to open
(2) the assignment of customers to facilities
The objective is t...
阅读全文…
732. My Calendar III
week13
难度:Hard
题目链接
题目描述
Implement a MyCalendarThree class to store your events. A new event can always be added.
Your class will have one method, book(int start, int end). ...
阅读全文…
312. Burst Balloons
week12
难度:Hard
题目链接
题目描述
Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloo...
阅读全文…
354. Russian Doll Envelopes
week11
难度:Hard
题目链接
题目描述
You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and only if b...
阅读全文…
514. Freedom Trail
week10
难度:Hard
题目链接
题目描述
In the video game Fallout 4, the quest “Road to Freedom” requires players to reach a metal dial called the “Freedom Trail Ring”, and use the dial to s...
阅读全文…
828. Unique Letter String
week9
难度:Hard
题目链接
题目描述
A character is unique in string S if it occurs exactly once in it.
For example, in string S = "LETTER", the only unique characters are...
阅读全文…