![]() |
VOOZH | about |
Pre-Qualifier Round:
The pre-qualifier round was on 8th August 2020. There were 6 problems which were to be solved within 6 hours. I was able to solve only 2 problems:
1. Prime Time Again
Problem Description:
Here on earth, our 24-hour day is composed of two parts, each of 12hours. Each hour in each part has a corresponding hour in the other part separated by 12 hours: the hour essentially measures the duration since the start of the daypart. For example, 1 hour in the first part of the day is equivalent to 13, which is 1 hour into the second part of the day. Now, consider the equivalent hours that are both prime numbers. We have 3 such instances for a 24-hour 2-part day:
5~17 7~19 11~23
Accept two natural numbers D, P >1 corresponding respectively to the number of hours per day and the number of parts in a day separated by a space. D should be divisible by P, meaning that the number of hours per part (D/P) should be a natural number. Calculate the number of instances of equivalent prime hours. Output zero if there is no such instance.
I used Sieve of Eratosthenes to solve this problem.
2. Minimize The Sum
Problem Description
Given an array of integers, perform atmost K operations so that the sum of elements of the final array is minimum. An operation is defined as follows -
Consider any 1 element from the array, arr[i]. Replace arr[i] by floor(arr[i]/2). Perform next operations on the updated array. The task is to minimize the sum after atmost K operations.
I used Min-Heap to solve this problem.
The result of the pre-qualifier round was out on 2nd September 2020.
I secured the rank of 3376.
On 10th September, I got mail that my interview was scheduled on 15th September.
Interview Round: There were 3 rounds in the interview: Technical, Managerial, and HR Round. All 3 rounds happened one after the other in a single call.
1. Technical Round: I was asked to introduce myself followed by several questions:
2. Managerial Round: Different scenarios were given and according to the scenario I had to answer the questions.
3. HR Round
On 5th October, I got a mail that I had been short-listed for a Digital offer with TCS.