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

SDE - 1

Acko
upvote
share-icon
4 rounds | 10 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 8 months
Topics: DSA, Competitive coding, Object oriented programming, Operating systems,
Tip
Tip

Tip 1 : Practice coding regularly from different websites.
Tip 2 : Give weekly time bound coding contests to check your progress.
Tip 3 : Take mock interviews with your friends to check the progress regularly.

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

Tip 1 : Only include those projects for which you have great understanding.
Tip 2 : Try to include few achievements like participation in Hackathon/coding contests.
Tip 3 : Make it one page and simple looking where only key points are mentioned.

Interview rounds

01
Round
Hard
Online Coding Interview
Duration90 minutes
Interview date16 Aug 2020
Coding problem3

It happened at 1am in the morning. 
Online mode with hackerrank ass it was covid period.

1. Regular Expression Match

Easy
10m average time
90% success
0/40
Asked in companies
HSBCFacebookGoldman Sachs

Given a string ‘str’ and a string ‘pat’. The string s has some wildcard characters i.e ‘?’ and ‘*’.

If any character is a ‘?’ we can replace that character with any other character. 

If a character is a * we can replace * with any sequence of characters including the empty sequence.  

Your task is to determine if it is possible that we can make ‘str' = 'pat’ using appropriate conversions in ‘str’.

For example:
Let str = “abc?" and pat= “abcd”

We return true as ‘?’ can be replaced with ‘d’ and this makes ‘str’ and ‘pat’ same.
Try solving now

2. Minimum Depth Of Binary Tree

Moderate
20m average time
80% success
0/80
Asked in companies
FacebookGoldman SachsMakeMyTrip

You have been given a Binary Tree of integers, find the minimum depth of this Binary Tree. The minimum depth of a Binary Tree is the number of nodes along the shortest path from the root node down to the nearest leaf node.

Note:
A leaf is a node with no children.
For example:
For the given binary tree

alt text

Output: 2
The shortest path is from root node 1 to leaf node 2 which contains 2 nodes in the path. Hence, the minimum depth is 2.
Try solving now

3. Minimum Cost to Destination

Hard
41m average time
30% success
0/120
Asked in companies
OYOAckoBarclays

You have been given an N*M matrix where there are 'N' rows and 'M' columns filled with '0s' and '1s'.


'1' means you can use the cell, and '0' means the cell is blocked. You can move in the 4 following directions from a particular position (i, j):

1. Left - (i, j-1)
2. Right - (i, j+1)
3. Up - (i-1, j)
4. Down - (i+1, j)

Now, for moving in the up and down directions, it costs you $1, and moving to the left and right directions are free of cost.

You have to calculate the minimum cost to reach (X, Y) from (0, 0) where 'X' is the row number and 'Y' is the column number of the destination cell. If it is impossible to reach the destination, print -1.

Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date19 May 2022
Coding problem3

This was round 1(few coding questions + project description)

1. LCA Of Binary Tree

Moderate
10m average time
90% success
0/80
Asked in companies
GrabDisney + HotstarShareChat

You have been given a Binary Tree of distinct integers and two nodes ‘X’ and ‘Y’. You are supposed to return the LCA (Lowest Common Ancestor) of ‘X’ and ‘Y’.


The LCA of ‘X’ and ‘Y’ in the binary tree is the shared ancestor of ‘X’ and ‘Y’ that is located farthest from the root.


Note :
You may assume that given ‘X’ and ‘Y’ definitely exist in the given binary tree.
For example :
For the given binary tree

Example

LCA of ‘X’ and ‘Y’ is highlighted in yellow colour.
Try solving now

2. Longest Subarray Zero Sum

Moderate
18m average time
85% success
0/80
Asked in companies
AmazonOlaPayU

Given an array arr of length N consisting of positive and negative integers, return the length of the longest subarray whose sum is zero.

Try solving now

3. Jump Game

Moderate
15m average time
85% success
0/80
Asked in companies
ZSOLX GroupDisney + Hotstar

You have been given an array 'ARR' of ‘N’ integers. You have to return the minimum number of jumps needed to reach the last index of the array i.e ‘N - 1’.


From index ‘i’, we can jump to an index ‘i + k’ such that 1<= ‘k’ <= ARR[i] .


'ARR[i]' represents the maximum distance you can jump from the current index.


If it is not possible to reach the last index, return -1.


Note:
Consider 0-based indexing.
Example:
Consider the array 1, 2, 3, 4, 5, 6 
We can Jump from index 0 to index 1
Then we jump from index 1 to index 2
Then finally make a jump of 3 to reach index N-1

There is also another path where
We can Jump from index 0 to index 1
Then we jump from index 1 to index 3
Then finally make a jump of 2 to reach index N-1

So multiple paths may exist but we need to return the minimum number of jumps in a path to end which here is 3.
Try solving now
03
Round
Medium
Face to Face
Duration60 Minutes
Interview date20 May 2022
Coding problem3

2 puzzles + 1 coding question was asked to explain

1. Puzzle

puzzle of coin role

2. Puzzle

puzzle of dice role

3. Search In BST

Easy
15m average time
85% success
0/40
Asked in companies
LinkedInAckoErnst & Young (EY)

There is a Binary Search Tree (BST) consisting of ‘N’ nodes. Each node of this BST has some integer data.


You are given the root node of this BST, and an integer ‘X’. Return true if there is a node in BST having data equal to ‘X’, otherwise return false.


A binary search tree (BST) is a binary tree data structure that has the following properties:

1. The left subtree of a node contains only nodes with data less than the node’s data.

2. The right subtree of a node contains only nodes with data greater than the node’s data.

3. The left and right subtrees must also be binary search trees.
Note:
It is guaranteed that all nodes have distinct data.
Try solving now
04
Round
Easy
HR Round
Duration30 minutes
Interview date24 May 2022
Coding problem1

few questions regarding the behaviour(no need to prepare for this round)

1. Basic HR Questions

What is your biggest regret?

Who is your role model?

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
4 rounds | 6 problems
Interviewed by Acko
1364 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Acko
1669 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Acko
1195 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Acko
797 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes