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

Software Engineer

Hotstar
upvote
share-icon
2 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
My journey began with my choice of computer science as a subject in the eleventh grade. Consequently, my interest in programming and development grew, leading me to major in computer science for my graduation. I started participating in coding competitions and hackathons after enrolling in college.
Application story
I applied through referral and then they called me for the interview rounds. The rounds were pretty decent and went smoothly.
Why selected/rejected for the role?
I was rejected because I could not answer all the questions correctly during the interview.
Preparation
Duration: 6 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Practice previous interview questions from coding platforms.
Tip 2 : Revise Computer Science subjects like DBMS, OOPS thoroughly.

Application process
Where: Referral
Eligibility: Above 8 CGPA
Resume Tip
Resume tip

Make a document where you can list any answers to the interviewer's queries about your resume, such as your cover letter, project details, reasons why you chose to work for XYZ firm, talents and abilities, etc.

Interview rounds

01
Round
Easy
Video Call
Duration60 minutes
Interview date6 Jul 2023
Coding problem2

The interviewer introduced herself and asked me the same. 

Then, I was asked to open the IDE of my choice and code the following questions.

1. Longest Substring Without Repeating Characters

Moderate
20m average time
80% success
0/80
Asked in companies
Morgan StanleyAmazonWalmart

Given a string 'S' of length 'L', return the length of the longest substring without repeating characters.

Example:

Suppose given input is "abacb", then the length of the longest substring without repeating characters will be 3 ("acb").
Try solving now

2. Find Number Of Islands

Moderate
34m average time
60% success
0/80
Asked in companies
MicrosoftAmazonUber

You are given a 2-dimensional array/list having N rows and M columns, which is filled with ones(1) and zeroes(0). 1 signifies land, and 0 signifies water.

A cell is said to be connected to another cell, if one cell lies immediately next to the other cell, in any of the eight directions (two vertical, two horizontal, and four diagonals).

A group of connected cells having value 1 is called an island. Your task is to find the number of such islands present in the matrix.

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date6 Jul 2023
Coding problem3

This was a technical interview of 60 minutes. 

First, the interviewer introduced herself and asked me the same. Then, she asked about the projects I mentioned in my resume. There was a deep discussion on the tech stack mentioned in the resume. 

Then, I was asked to code the following questions.

1. Longest Palindromic Substring

Moderate
35m average time
78% success
0/80
Asked in companies
GrabMicrosoftAmazon

You are given a string ‘S’ of length ‘N’.

You must return the longest palindromic substring in ‘S’.

Note: Return any of them in case of multiple substrings with the same length.

Example:

Input: ‘S’ =’badam’

Output: ‘ada’

‘ada’ is the longest palindromic substring, and it can be proved that it is the longest possible palindromic substring.
Problem approach

The LPS is either of even length or odd length. So, the idea is to traverse the input string and, for each character, check if this character can be the center of a palindromic substring of odd length or even length.

Try solving now

2. Boundary Traversal of Binary Tree

Hard
20m average time
85% success
0/120
Asked in companies
SalesforceAmazonGoldman Sachs

You are given a binary tree having 'n' nodes.


The boundary nodes of a binary tree include the nodes from the left and right boundaries and the leaf nodes, each node considered once.


Figure out the boundary nodes of this binary tree in an Anti-Clockwise direction starting from the root node.


Example :
Input: Consider the binary tree A as shown in the figure:

alt text

Output: [10, 5, 3, 7, 18, 25, 20]

Explanation: As shown in the figure

The nodes on the left boundary are [10, 5, 3]

The nodes on the right boundary are [10, 20, 25]

The leaf nodes are [3, 7, 18, 25].

Please note that nodes 3 and 25 appear in two places but are considered once.
Problem approach

Each node in a binary tree has a maximum of two pointers, which can be used to traverse the tree in a specific manner without using any extra space. Specifically, we can modify the structure of the tree itself in a way that allows us to traverse it without using any extra space.

Try solving now

3. Top View of the Binary Tree

Easy
0/40
Asked in companies
Thought WorksWalmartSAP Labs

You have been given a Binary Tree of integers. You are supposed to return the top view of the given binary tree.

Top view of the binary tree is the set of nodes which are visible when we see the tree from the top.

For example:
For the given binary tree

Example

The top view of the tree will be {10, 4, 2, 1, 3, 6}.
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
960 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
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7873 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
9973 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Amazon
4310 views
1 comments
0 upvotes