| Problem Statement | |||||||||||||
| At Facebook, different tasks have to be executed simultaneously on a limited number of computers. You are given a set of incoming tasks. Each computer can execute at most one task, and each task must be fully executed on a single computer. You are given int[]s complexity and computers. Element i of complexity is the complexity of the i-th task. Element i of computers is the maximal complexity of a task that can be handled by the i-th computer. Return the maximal number of tasks that can be executed on the given computers. | |||||||||||||
| Definition | |||||||||||||
| 
 | |||||||||||||
| Constraints | |||||||||||||
| - | complexity will contain between 1 and 50 elements, inclusive. | ||||||||||||
| - | Each element of complexity will be between 1 and 1,000,000, inclusive. | ||||||||||||
| - | computers will contain between 1 and 50 elements, inclusive. | ||||||||||||
| - | Each element of computers will be between 1 and 1,000,000, inclusive. | ||||||||||||
| Examples | |||||||||||||
| 0) | |||||||||||||
| 
 | |||||||||||||
| 1) | |||||||||||||
| 
 | |||||||||||||
| 2) | |||||||||||||
| 
 | |||||||||||||
| 3) | |||||||||||||
| 
 | |||||||||||||
| 4) | |||||||||||||
| 
 | |||||||||||||