Company: Twilio
Difficulty: medium
\ Maximum Networks \ \ \ Twilio is working to create several shared computing systems throughout an office. \ \ For computers to be on the same network, there are the following constraints: \ \ They must be adjacent to one another. \ There must be a minimum number of computers. \ The total processing speed of the network (the sum of each computer\\\'s processing speed) must be at least a certain threshold. \ A computer can only belong to one network. \ \ \ Given the processing speeds and order of the computers, as well as the network constraints, determine the maximum number of networks that can be formed. \ \ \ \ Function Description \ Complete the function maximumNetworks in the editor. \ \ maximumNetworks has the following parameter(s): \ \ int speed[n] : speed[i] denotes the processing speed of the i th computer \ int minComps : the minimum number of computers each network must have \ long speedThreshold : the minimum total processing speed a network must have \ \ \ Returns \ int :