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

Intern

Universal celebrations
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
I started my coding journey in my second year of graduation. I asked and consulted seniors on how to start my career. I started doing DSA. I started practicing DSA on regular basis. Meanwhile, I also learned Web Development in the last phase of the third year.
Application story
I got informed about the company on campus visit through college tpo job portal, so i filled it up, and i got shortlisted for the first online coding round that went easy and questions were not that hard
Why selected/rejected for the role?
I was giving correct explanation for my solutions in the coding round. I also built the optimal solution starting from the brute force algorithm which also added to my points.
Preparation
Duration: 6 months
Topics: Data Structures,Algorithms,Operating System,DBMS,OOPS concept
Tip
Tip

Tip 1 : Practice all the data structures thoroughly and know about the basic concepts behind them and their use cases in real world.
Tip 2 : Be thorough with your resume .
Tip 3 : Be confident while answering the questions and be honest about your work.

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Keep your resume crisp and to the point.
Tip 2 : Have a thorough understanding of the technologies used in the project and why was that specific technology chosen.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 mins
Interview date3 Mar 2023
Coding problem1

1. Convert a binary tree to its sum tree

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

Given a binary tree of integers, you are supposed to modify the given binary tree to a sum tree where each node value is replaced by the sum of the values of both left and right subtrees in the given tree. The value of leaf nodes is changed to zero.

Example:
Below is the example showing the input tree and its sum tree.  

alt text

Try solving now
02
Round
Medium
Face to Face
Duration60 mins
Interview date8 Mar 2023
Coding problem2

1. Second largest element in the array

Easy
15m average time
80% success
0/40
Asked in companies
Info Edge India (Naukri.com)OracleHCL Technologies

You have been given an array/list 'ARR' of integers. Your task is to find the second largest element present in the 'ARR'.

Note:
a) Duplicate elements may be present.

b) If no such element is present return -1.
Example:
Input: Given a sequence of five numbers 2, 4, 5, 6, 8.

Output:  6

Explanation:
In the given sequence of numbers, number 8 is the largest element, followed by number 6 which is the second-largest element. Hence we return number 6 which is the second-largest element in the sequence.
Problem approach

I traversed the array twice. In the first traversal, I found the maximum element. In the second traversal I found the greatest element less than the element obtained in the first traversal.

Try solving now

2. Minimum Number of Platforms

Moderate
30m average time
70% success
0/80
Asked in companies
MeeshoGrabAmazon

You have been given two arrays, 'AT' and 'DT', representing the arrival and departure times of all trains that reach a railway station.

Your task is to find the minimum number of platforms required for the railway station so that no train needs to wait.

Note :
1. Every train will depart on the same day and the departure time will always be greater than the arrival time. For example, A train with arrival time 2240 and departure time 1930 is not possible.

2. Time will be given in 24H format and colons will be omitted for convenience. For example, 9:05AM will be given as "905", or 9:10PM will be given as "2110".

3. Also, there will be no leading zeroes in the given times. For example, 12:10AM will be given as “10” and not as “0010”.
Problem approach

I took a variable to count the number of platforms required at a particular time and a final ans variable. I took 2 arrays one for arrival time and the other for departure time and sorted both the arrays. Then I took 2 pointers at the start of each array and compared the timings pointed by the 2 variables. If the smallest time was of arrival I incremented my count variable otherwise decremented it and incremented the pointer of the smallest time. Every time I changed the count variable I compared it with my final ans variable, if its value is greater than my answer I updated my answer, and finally returned my answer variable.

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
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4657 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
961 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
3452 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Intern
3 rounds | 4 problems
Interviewed by CIS - Cyber Infrastructure
639 views
0 comments
0 upvotes
company logo
Intern
2 rounds | 2 problems
Interviewed by Microsoft
1460 views
0 comments
0 upvotes
company logo
Intern
2 rounds | 2 problems
Interviewed by Adobe
994 views
0 comments
0 upvotes