O9 interview experience Real time questions & tips from candidates to crack your interview

Software Consultant

O9
upvote
share-icon
2 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, Algorithms, System Design, Aptitude, OOPS
Tip
Tip

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application process
Where: Campus
Eligibility: Students were shortlisted on the basis of CGPA , 10th and 12th percentages. CGPA criteria being 7+ in my college.
Resume Tip
Resume tip

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration45 minutes
Interview date20 Feb 2017
Coding problem0

This round had 14 questions having 20 marks. 
Tips: Try to attempt 2 markers first and then go for 1 markers

02
Round
Easy
Face to Face
Duration45 minutes
Interview date20 Feb 2017
Coding problem2

This was a technical interview round where DSA questions were discussed. Questions on subjects related to my branch(EEE) and some questions on maths as I had mentioned my Olympiad rank were also asked.

1. Angle Between Hour Hand And Minute Hand

Easy
15m average time
85% success
0/40
Asked in companies
AmazonSalesforceMicrosoft

Given the time in hours and minutes, you need to calculate the angle between the hour hand and the minute hand.

Note :
There can be two angles between the hour hand and minute hand, you need to print a minimum of two. Also, print the floor value of angle i.e. if the angle is 15.2, you need to print 15.
Problem approach

The idea is to take 12:00 (h = 12, m = 0) as a reference. 
Steps : 
1. Calculate the angle made by hour hand with respect to 12:00 in h hours and m minutes. 
2. Calculate the angle made by minute hand with respect to 12:00 in h hours and m minutes. 
3. The difference between the two angles is the angle between the two hands

Pseudocode :
calcAngle(h,m)
{
// validate the input
if (h <0 or m < 0 or h >12 or m > 60)
print("Wrong Input")

if (h is equal to 12) h = 0;
if (m is equal to 60)
{
m = 0;
h += 1;
if(h>12)
h = h-12;
}

// Calculate the angles moved by hour and minute hands with reference to 12:00
initialise hour_angle as 0.5 * (h * 60 + m)
initialise minute_angle as 6 * m

// Find the difference between two angles
initialise angle as absolute value of (hour_angle - minute_angle)

// Return the smaller angle of two possible angles
update angle to minimum of (360 - angle, angle)

return angle 
}

Try solving now

2. Factorial of a Number

Easy
0/40
Asked in companies
HCL TechnologiesNagarro SoftwareCapegemini Consulting India Private Limited

Write a program to find the factorial of a number.

Factorial of n is:

n! = n * (n-1) * (n-2) * (n-3)....* 1

Output the factorial of 'n'. If it does not exist, output 'Error'.

Problem approach

Factorial can be calculated using following recursive formula: 

n! = n * (n-1)!
n! = 1 if n = 0 or n = 1
Factorial can also be calculated iteratively as recursion can be costly for large numbers. 
Factorial(n)
{
Initialise a variable res = 1
for (i = 2 to i <= n) do :
res = res* i
return res
}

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
Associate Consultant
2 rounds | 3 problems
Interviewed by O9
1664 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4656 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6450 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 views
0 comments
0 upvotes