Answer:
# you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(H):
# write your code in Python 3.6
# return area of atmost 2 banners
# 1 banner
# maximum height * number of buildings
single_banner = max(H) * len(H)
smallest_area = single_banner
# 2 banner
for i in range(1, len(H)):
double_banner = (max(H[0:i]) * len(H[0:i])) + (max(H[i:]) * len(H[i:]))
if double_banner < smallest_area:
smallest_area = double_banner
return smallest_area
Answer:
Explanation: The first thing to calculate is what IP addresses are used by the largest LAN. Because the LAN has 100 hosts, 7 bits must be left for host bits.
Explanation:
Explanation: The first thing to calculate is what IP addresses are used by the largest LAN. Because the LAN has 100 hosts, 7 bits must be left for host bits.
Answer:12 days
Explanation:
Mean time to failure is given by
MTTF=
Let's say N is the average amount of time system runs until
computer fail
MTTF of each computer =35
35=

N=
Answer:
A function that is defined within another function.