5
Reading for right to left (backward to normal)
The first 1 is one in base 10 (decimal).
The Zero is null (as in none)
The last (or first reading from left to right) means 4.
4+0+1 = 5
1+0+1 = 5
Answer:
It can be 100001, 100000,000001,000000
Hence, answer is 4.
its also can be found through 2C2 *2 = 2!/0! *2 =2*2 =4
Explanation:
The answer is straight forward, we have 2 empty places and we can select from 2 items, and hence its 2C2, and now we can arrange them as well, and since we can arrange in 2 ways, hence a total number of possibility = 2 * 2C2 = 4, which is the required answer.
The third option is correct.
Answer:
array = input("Enter the list of computer memory: ").split(',')
int_arr = [int(x) for x in array]
segment = int(input("Enter the length of segment to analyze: "))
list_len = len(int_arr)
segList = []
mini = []
for x,i in enumerate(int_arr):
seg = int_arr[i-1:segment+i-1]
if len(seg) == segment:
segList.append(seg)
for x in segList:
mini.append(min(x))
result = mini.index(min(mini))
print("Segment with the minimum memory is: ",segList[result])
Explanation:
The python program prints out the segment after analysis, with the smallest disk memory space. The code gets the array of computer rows from the user input and segments the array with the number of segment input, then the minimum is compared for all segments in the network.