# High Radius Technologies Interview Questions – Set 1

July 21, 2018
Posted by Pumpkin

Hi Guys! I am Aditya Agrawal. I recently got selected as a Trainee at High Radius Technologies, Hyderabad. So, I would like to share my experience of appearing for the Online Test and subsequently the interview. I hope it might be useful for each and everyone in CodePumpkin community.

## First Round : Online Test

Duration : 3 hours 35 minutes. Test was conducted on platform called mettl and it was divided into two sections.

1. 35 minutes Aptitude Section
2. 3 hours of Coding Round consisting of 4 questions in the preferred language of your choice.

The online test was not that challenging, but you really need to work on an algorithm which would prevent you from getting a Time Complexity Test Case Failing. Overall, the difficulty level was not that tough. Here are the questions from online test.

Question 1)
There are N bowls numbered from 1 to N and each bowl can contain maximum 9 marbles.  A user has to add a marble to the last bowl i.e. Nth Bowl. If Nth bowl is full i.e. it already has 9 marbles, you need to check in (N-1)th bowl. If (N-1)th bowl has space to accomodate one more marble, then you need to add marble in it and remove all the marbles from Nth bowl. You need to identify the bowl will be modified when you add a marble. If all bowls are full, print output as 0.

Input :
First line contains number of bowls i.e. N
Secons line will denotes number of marbles in each bowl from 1 to N.

Output :

Three Input Cases to understand the output better.

Test case 1
Input

```2 2 3 ```
Here first line denotes that there are 2 bowls. Second line denotes that there are 2 marbles in first bowl and 3 marbles in second bowl.
Output
`2`
First we will check in the last bowl. It has less than 9 marbles, so we can add marble to last bowl and now status of the bowls will be 2 4. As we have added marble to the second bowl, output will be 2.

Test Case 2
Input

`2`
`2 9`
Output
`1`
Since if we add 1 to the last bowl, it becomes 2 10, not allowed, so the one marble gets carry forwarded to the next bowl making it 3 0, so 1st bowl is the last modified.

Test Case 3
Input

`2`
`9 9`
Output
`0`
Since if we add 1 to the last bowl, it becomes 9 10, carry forward it becomes 10 0, again a problem, so 0 0
Making nothing getting modified at the end.

In other words, you need to identify the left most digit which will be modified when you increment a decimal number.

Question 2)
There are N interns numbered from 1 to N. Each intern is assigned a unique ID for each day. Rules being 1<=N<=24
The ith intern has an ID of (5000*i) on day 1 and for the rest of the days, Day(i) = Day(i-1)+5000+(i-1)
Input to the problem is ID of intern. Output is number of intern on particular day. Here are the test cases for better understanding.

Test Case 1
Input:
15000
Output: Third intern ( Day 1 )

Test Case 2
Input:
25003
Output: Third intern ( Day 3 )

Question 3)
There are N street lights numbered from 1 to N. Each street lamp i has two numbers start(i), end(i) meaning they can light all the streets numbered from start to end. You just need to find out how many areas are getting lighted.

Test Case 1
Input: {{5,8},{10,12}}
Output: 5   i.e  (8-5) + (12-10)

Test Case 2
Input: {{5,10}, {8,12}}
Output: 7   i.e  (10-5) + (12-8) – (10-8)(as it is Common)

Question 4)
There are N bus stops numbered from 1 to N. B[i] denotes the number of buses going from the ith bus stop.
Each bus will only stop in the bus stop which is the multiple of the bus stop the bus is initially in. which means if a bus starts from 2nd bus stop, it will only stop in 2,4,6,8,10,12…. bus stops. If 3 then, 3 6 9 12 15 18. Each bus if it goes from the ith bus stop, will also go from the next ith multiple bus stop. You need to tell the number of unique buses from each bus stop.

Test Case 1
Input:
1 2 3
Output: 1 1 2

Explanation:
i=1, the bus will stop at all the i stops.
i=2, the bus will stop at all the bus stops which is a multiple of 2.

Test Case 2
Input:
2 3 4 6
Output: 2 1 2 3

Once I cleared online test, I was asked to appear for F2F Interview Round.

## F2F Interview Round

The interviewer was the Vice President of Technology at High Radius. He asked me about my Project which I had done using JSP and Servlet. Following to which he asked me to write and explain a code of implementing a Session timed out feature in any page using JSP and Servlet. After this, there were Java Questions asked like

1. What is java.lang package
2. What is Object Class?
3. Give any method example of Object Class.
4. What is the difference between PreparedStatement, CallableStatement and Statement?
5. Explain garbage collection in Java.

Then the tricky part, he opened my code on his laptop which I had written in the online test and that was the deciding factor for my selection. He asked me about the logic I implemented and the test cases which I had failed, he asked me whether I had researched on it and tried to figure out where I got Wrong.

Suggestions for Technical Interview

After my selection, my interviewer told us that their selection process is highly reliable on how the code is written and the formatting.

1. Guys, stop using i, j, k in loop variables and instead, keep a meaningful name for the variable. One of my friends used i,j,k,a,b as variable names and had all test cases correct, still wasn't selected because of poor formatting, no indentation.
2. Comment lines also give extra clarity to the code , but make sure to use meaningful variable names.
3. Also, never forget indenting your code so that it becomes easy to read it.

The interviewer was very keen on looking at these things and also the logic and algorithm I implemented. A good lesson one should definitely take. Then came the HR Interview

## HR Interview

HR interview was pretty easy asking basic questions like

1. What is your family background?
2. What is your location preference?
3. Whom do you think is the best developer in your college?
4. Tell me one thing you did not like about the interview process.

All in all, a wonderful experience and now I am working as a Trainee in Associate Software Engineer in the company. Thank you for your time. Cheers and all the best!

This article is contributed Aditya Agrawal. If you have any doubts, feel free to contact him or you can drop a comment over here. If you would also like to contribute your article or share interview experiences, you can create contributor account with CodePumpkin by clicking here or you can send us a mail at admin@codepumpkin.com.

That's all for this topic. If you guys have any suggestions or queries, feel free to drop a comment. We would be happy to add that in our post. You can also contribute your articles by creating contributor account here.

Happy Learning 🙂

If you like the content on CodePumpkin and if you wish to do something for the community and the planet Earth, you can donate to our campaign for planting more trees at CodePumpkin Cauvery Calling Campaign.

We may not get time to plant a tree, but we can definitely donate ₹42 per Tree.

## pumpkin

A Blog that will help you to learn and refresh your knowledge on Core Java, Data Structure, algorithms, Design Patterns.

Tags: ,

## Comments and Queries

If you want someone to read your code, please put the code inside <pre><code> and </code></pre> tags. For example:
```<pre><code class="java">
String foo = "bar";
</code></pre>
```