Question: Aws lambda functions are very fast, but you want to find out in which language they run the fastest. You are given N values for
Aws lambda functions are very fast, but you want to find out in which language they run the fastest. You are given N values for each language Java & Python which denote the time taken by lambda functions to run in milliseconds.
First N values are the time taken by AWS Lambda functions in java denoted by Ai
Then next N values are the time taken by AWS Lambda functions in python denoted by Bi
You have to find number of nonempty subsets N such that max of time taken by AWS Lambda functions in java are greater than or equal
to max of time taken by AWS Lambda functions in python, ie maxAi maxBihere i is taken from the subset you choose from N elements Since the count can be large, find it modulo
Input Format
Nnumber of values
First N values are the time taken by AWS Lambda functions in java.
Then next N values are the time taken by AWS Lambda functions in python.
Constraints
N
Ai Bi
Test Case
Input
Output
code in python
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
