subject

Disk Space Analysis A company is performing an analysis on the computers at its main office. The computers are spaced along a single row. The analysis is performed in the following way 1. Choose a contiguous segment of a certain number of computers, starting from the beginning of the row.2. Analyze the available hard disk space on each of the computers. 3. Determine the minimum available disk space within this segment. After performing these steps for the first segment, it is then repeated for the next segment, continuing this procedure until the end of the row (i. e. if the segment size is 4, compu 1 to 4 would be analyzed, then 2 to 5, etc.) Given this analysis procedure, find the maximum available disk space among all the minima that are found during the analysis. Example n = 3, the number of computers space = [8, 2, 4] x = 2, the length of analysis segmentsIn this array of computers, the subarrays of size 2 are 18, 2] and [2, 4]. Thus, the initial analysis returns 2 and 2 because those are the minima for the segments. Finally, the maximum of these values is 2. Therefore, the answer is 2.Function Description Complete the function segment in the editor below. segment has the following parameter(s): intx: the segment length to analyze int space[n]: the available hard disk space on each of the computers Returns: int: the maximum of the minimum values of available hard disk space found while analyzing the computers in segments of numcomps Constraints • 1 snc 10 • In • Is space 10 Input Format for Custom Testing Sample Case Sample Input STOIN Function1 - length of segments 1 - Size of space n = 51 - space - [1, 2, 3, 1, 2) 2 3 1 2 Sample Output 3 Explanation The subarrays of size x1 are 11.121.131.1 and (2) Because each subarray only contains / element, each value is minimal with respect to the subarray it is in. The maximum of these values is 3.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Today is the anniversary of me being on yet, i don't need it anymore! here's a picture of my dog wearing a bowtie! my question is, how do i delete my account?
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
You know the right answer?
Disk Space Analysis A company is performing an analysis on the computers at its main office. The com...
Questions
Questions on the website: 13722360