You are given three integers X, Y and Z and two arrays A and B both of length N. You are also given an integer sum which is initially equal to 0. You must perform N operations and in each ith operation you must do only one of the following: 1. 2. 3. Subtract B[i] from sum. Decrease both of X and Y by 1, then add A[i] * X * Y *Z to sum. Decrease both of Y and Z by 1, then add A[i] * X * Y *Z to sum. However, after each operation, X, Y and Z must all remain greater than or equal to 0. Find the maximum sum you can obtain after performing all operations. Sample Input: 2 1 2 2 0 0 10 5 Sample output: 0 Explanation: Here, N = 2, X = 1, Y = 2, Z = 2 A = [0, 0] B = [10, 5] It is given that in starting, sum = 0 operation 1: Apply type 2 operation (i.e. Decrease both of X and Y by 1, then add A[1]*X*Y*Z to sum) X = 0, Y = 1, Z = 2 sum = sum + 0*0*1*2 = 0 operation 2: Apply type 3 operation (i.e. Decrease both of Y and Z by 1, then add A[2]*X*Y*Z to sum) X = 0, Y = 0, Z = 1 sum = sum + 0*0*0*1 = 0 Hence, answer is the final value of sum i.e. sum = 0.
Technical Support Analyst L1 Interview Questions
753 technical support analyst l1 interview questions shared by candidates
I need to solve the climbing stairs question using DP.
The interviewer asked from my resume, core concepts like OOPS and RDBMS. He asked ML questions as well as web development questions. The interview was 1 hour long.
1. Write a program to a check whether a number is even or odd? 2. Give a two table asked to write a query to join those tables? 3. SQL constraints? 4. Different Keys in SQL? What is a Foreign key? 5. Explain about projects? What is your role in the project? 6. OOP concepts.
1. Java 8 features, 2. Process two large log files of size 1GB per file and creat an single sorted log file 3. String questions 4. Basic Algorithms
Questions were asked about project
how to configure firewall in a router and also how to add ACLs?
We do technical support for several ISPs. What experience do you have that would make you a good fit for our company?
Why'd you leave teleNetwork and what sparked your interest in returning? Which shift would you prefer?
Would it be an issue for you to bump into transgenders on your way to the work?
Viewing 421 - 430 interview questions