Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Nutanix Interview Question | Placement 2019-2020

  • Last Updated : 16 Dec, 2019

Problem Statement:
Lexa is an employee at XYZ. She wants to build a computing instance, to build one she needs to put together three components Processor, RAM, and SSD. She has multiple specs of each of the components, and the cost of them in an array P, R, and S. Each instance to assemble would cost her (Px + Ry)*(Ry + Sz). But at any instance, she does not want Ram cheaper than other components.
Find the total cost of all possible instances.

Input.
The first line contains the number of test cases.
For each test case contains three integers, the number of specs she has for the Processor, RAM, and SSD.
The second line contains the various prices of Processors.
The third line contains the various prices of RAM.
The fourth line contains the various prices of SSD.

Hey geek! It's time to become a success story instead of reading them. Check out our most renowned DSA Self Paced Course, now at a student-friendly price and become industry ready. And if you are looking for a more complete interview preparation resource, check out Complete Interview Preparation Course that will prepare you for the SDE role of your dreams!

Feeling prepared enough for your interview? Test your skills with our Test Series that will help you prepare for top companies like Amazon, Microsoft, TCS, Wipro, Google and many more!

Output.
Every test case contains a single line, the required cost to assemble all possible instances.

asked in NUTANIX 2019-2020 placement

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!