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

Software Engineer

HashedIn
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 12 Months
Topics: Data Structures and Algorithms, OOPS, DBMS, Operating Sytem, Computer Networks, System Design
Tip
Tip

Tip 1 : Practice DSA questions, not only once, but at least twice.
Tip 2 : Also take care of theory subjects because they are asked a lot in interviews.
Tip 3 : Do competitive coding contest at least once in a week.

Application process
Where: Campus
Eligibility: 6+ CGPA
Resume Tip
Resume tip

Tip 1 : Never write something which you aren't well aware of.
Tip 2 : Try building resume on Latex

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date23 Dec 2020
Coding problem0

There were 3 coding questions. The questions were different for different students.
Question 1 : Easy
Question 2 : Medium
Question 3: Medium

If one was able to solve 2 question, he/she was shortlisted for interview

02
Round
Easy
Video Call
Duration40 minutes
Interview date29 Dec 2020
Coding problem2

17 candidates were shortlisted for the interview.
There were 2 coding questions asked of easy level. I had to explain my approach and write the code in google doc.

1. Check if two trees are Mirror

Easy
15m average time
85% success
0/40
Asked in companies
SAP LabsLinkedInGoldman Sachs

You are given two arbitrary binary trees consisting of N and M number of nodes respectively, your task is to check whether the two trees are mirror of each other or not.

Two trees are said to be mirror of each other, if

1. Roots of both the given trees are same.
2. Left subtree of the root of the first tree is the mirror of the right subtree of the root of the second tree.
3. Right subtree of the root of the first tree is the mirror of the left subtree of the root of the second tree.

For example,both the given trees are mirror image of each other: example

Try solving now

2. Count Ways To Reach The N-th Stairs

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

You have been given a number of stairs. Initially, you are at the 0th stair, and you need to reach the Nth stair.


Each time, you can climb either one step or two steps.


You are supposed to return the number of distinct ways you can climb from the 0th step to the Nth step.

Note:

Note: Since the number of ways can be very large, return the answer modulo 1000000007.
Example :
N=3

Example

We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
Try solving now
03
Round
Easy
Video Call
Duration90 Minutes
Interview date30 Mar 2021
Coding problem4

The round was held in evening. There were 4 questions asked and the interviewer was more interested in the running code with several test cases rather than my explaination.

1. Excel Column number

Easy
23m average time
0/40
Asked in companies
OptumAppleOracle

You have been given a column title as appears in an Excel sheet, return its corresponding column number.

For example:
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28 
...
Try solving now

2. Increase Number By 1

Easy
15m average time
85% success
0/40
Asked in companies
HashedInD.E.Shaw

You are given an array of integers NUM consisting of N elements. This array represents the digits of a number. Your task is to increase the number by 1, or we can say you have to add 1 to this number. The number will be positive, and digits are stored so that the most significant digit is at the starting of the array.

For example:

Let input array is [1,3,2,7] so basically, this array represents the number 1327, the output will be [1,3,2,8].

Note:

The input may have 0 at the starting of the array, e.g., [0,3,5,7] is a valid input, but the output can not have 0 before the most significant digit. So [0,3,5,8] will be a wrong answer, and the correct answer will be [3,5,8].
Try solving now

3. Ways To Make Coin Change

Moderate
20m average time
80% success
0/80
Asked in companies
AmazonCIS - Cyber InfrastructureLinkedIn

You are given an infinite supply of coins of each of denominations D = {D0, D1, D2, D3, ...... Dn-1}. You need to figure out the total number of ways W, in which you can make a change for value V using coins of denominations from D. Print 0, if a change isn't possible.

Try solving now

4. Design Tic-Tac-Toe

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

Ninja has to design a 2 players game Tic-Tac-Toe played on an ‘N’ * ‘N’ grid.

Ninja has to assume the following rules while playing the game:

This game is played between two people (Player 1 and Player 2). Player 1 chooses ‘X' and Player 2 chooses ‘O’ to mark their cells. A move is guaranteed to be valid and is placed on an empty block.

A player who successfully places 'N' of their marks in a horizontal, vertical, or diagonal row wins the game. Once a winning condition is reached, no more moves are allowed.

As Ninja is busy planning his strategy, he asks you for help. Your task is to complete the function ‘move(row, col, player)’ where ‘row’ and ‘col’ represent the current row and column of the grid ‘player’ P (either 1 or 2) chooses to place his sign.

The function must return an integer which is either 0, 1, and 2 representing:

0: No one wins.
1: Player 1 wins.
2: Player 2 wins.

Example:

Let us assume if ‘N’ = 3 and player 1 places ‘X’ and player 2 places ‘O’ on the board.

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
Software Engineer
4 rounds | 6 problems
Interviewed by HashedIn
927 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 5 problems
Interviewed by HashedIn
2480 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 3 problems
Interviewed by HashedIn
2072 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 5 problems
Interviewed by HashedIn
1174 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
4 rounds | 1 problems
Interviewed by Newgen Software
3210 views
2 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Ernst & Young (EY)
0 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 3 problems
Interviewed by Newgen Software
1453 views
0 comments
0 upvotes