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

SDE - Intern

Park+
upvote
share-icon
4 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structure and Algorithm, Operating System, Computer Networks, Database Management System and System Design.
Tip
Tip

Tip 1 : Problem Solving with DSA on websites such as leetcode, pepcoding, codechef really helped(around 200 questions).
Tip 2 : Should have good understanding of core concepts, go through the interview questions.
Tip 3 : Take some time to study low level design as well.

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

Tip 1 : Should have at least two working projects
Tip 2 : Good to have some open source experience as well.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date20 Nov 2021
Coding problem1

There were around 15-20 MCQ questions and 5 subjective questions (one word) based on all the categories including operating system, computer networks, DSA and DBMS. Questions were not hard per say but a few of them required some time. The last question was a coding questions based on Dynamic Programming.

1. House Robber

Moderate
15m average time
80% success
0/80
Asked in companies
UberIntuitMicrosoft

Mr. X is a professional robber planning to rob houses along a street. Each house has a certain amount of money hidden.


All houses along this street are arranged in a circle. That means the first house is the neighbour of the last one. Meanwhile, adjacent houses have a security system connected, and it will automatically contact the police if two adjacent houses are broken into on the same night.


You are given an array/list of non-negative integers 'ARR' representing the amount of money of each house. Your task is to return the maximum amount of money Mr. X can rob tonight without alerting the police.


Note:
It is possible for Mr. X to rob the same amount of money by looting two different sets of houses. Just print the maximum possible robbed amount, irrespective of sets of houses robbed.


For example:
(i) Given the input array arr[] = {2, 3, 2} the output will be 3 because Mr X cannot rob house 1 (money = 2) and then rob house 3 (money = 2), because they are adjacent houses. So, he’ll rob only house 2 (money = 3)

(ii) Given the input array arr[] = {1, 2, 3, 1} the output will be 4 because Mr X rob house 1 (money = 1) and then rob house 3 (money = 3).

(iii) Given the input array arr[] = {0} the output will be 0 because Mr. X has got nothing to rob.
Problem approach

This is a follow-up question of house robber in which we take the maximum of the max value till (i-2)'th element and add i'th element to it and the max till (i-1)'th element., the answer would the max till the last element.


However since this is a circular array, we are just extending from the logic that if house i is not robbed, then you are free to choose whether to rob house i + 1, you can break the circle by assuming a house is not robbed.
 

Since every house is either robbed or not robbed and at least half of the houses are not robbed, the solution is simply the larger of two cases with consecutive houses, i.e. house i not robbed, break the circle, solve it, or house i + 1 not robbed. Hence, the following solution. I chose i = n and i + 1 = 0 for simpler coding. But, you can choose whichever two consecutive ones.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date28 Oct 2021
Coding problem2

The interview was at 1pm, the interviewer introduced himself, asked me to introduce myself and asked me two questions.

1. Search in Rotated Sorted Array

Easy
12m average time
85% success
0/40
Asked in companies
OYOZSAmazon

You have been given a sorted array/list 'arr' consisting of ‘n’ elements. You are also given an integer ‘k’.


Now the array is rotated at some pivot point unknown to you.


For example, if 'arr' = [ 1, 3, 5, 7, 8], then after rotating 'arr' at index 3, the array will be 'arr' = [7, 8, 1, 3, 5].


Now, your task is to find the index at which ‘k’ is present in 'arr'.


Note :
1. If ‘k’ is not present in 'arr', then print -1.
2. There are no duplicate elements present in 'arr'. 
3. 'arr' can be rotated only in the right direction.


Example:
Input: 'arr' = [12, 15, 18, 2, 4] , 'k' = 2

Output: 3

Explanation:
If 'arr' = [12, 15, 18, 2, 4] and 'k' = 2, then the position at which 'k' is present in the array is 3 (0-indexed).


Problem approach

The idea is that when rotating the array, there must be one half of the array that is still in sorted order.
For example, 6 7 1 2 3 4 5, the order is disrupted from the point between 7 and 1. So when doing binary search, we can make a judgement that which part is ordered and whether the target is in that range, if yes, continue the search in that half, if not continue in the other half.

Try solving now

2. Given an unsorted integer array nums, return the smallest missing positive integer.

Moderate
18m average time
84% success
0/80
Asked in companies
DunzoHikeSamsung

You are given an array 'ARR' of integers of length N. Your task is to find the first missing positive integer in linear time and constant space. In other words, find the lowest positive integer that does not exist in the array. The array can have negative numbers as well.

For example, the input [3, 4, -1, 1] should give output 2 because it is the smallest positive number that is missing in the input array.

Problem approach

Put each number in its right place.

For example :
When we find 5, then swap it with A[4].
At last, the first place where its number is not right, return the place + 1.

Try solving now
03
Round
Medium
Face to Face
Duration60 minutes
Interview date7 Dec 2021
Coding problem3

This was an unorthodox round with a mixup of everything.

1. Right View

Moderate
35m average time
65% success
0/80
Asked in companies
AdobeSAP LabsRazorpay

You have been given a Binary Tree of integers.

Your task is to print the Right view of it.

The right view of a Binary Tree is a set of nodes visible when the tree is viewed from the Right side and the nodes are printed from top to bottom order.

Problem approach

Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.

Try solving now

2. DBMS Question

What is caching?

3. System Design Question

DB schema structure for an E-Commerce website. I had a project of an e-commerce website on my resume that's why I believe this question was asked.

Problem approach

Tip : Don't be afraid to ask questions, it's more of a discussion rather than an interview.
 

04
Round
Medium
Face to Face
Duration60 minutes
Interview date9 Dec 2021
Coding problem1

This round was with the CTO of Park+.

1. Sudoku Solver

Hard
25m average time
75% success
0/120
Asked in companies
Urban Company (UrbanClap)OlaInfo Edge India (Naukri.com)

You have been given a 9x9 2d integer matrix 'MAT' representing a Sudoku puzzle. The empty cells of the Sudoku are filled with zeros, and the rest of the cells are filled with integers from 1 to 9. Your task is to fill all the empty cells such that the final matrix represents a Sudoku solution.

Note:
A Sudoku solution must satisfy all the following conditions-
1. Each of the digits 1-9 must occur exactly once in each row.
2. Each of the digits 1-9 must occur exactly once in each column.
3. Each of the digits 1-9 must occur exactly once in each of the 9, 3x3 sub-grids of the grid.

You can also assume that there will be only one sudoku solution for the given matrix.
Problem approach

The idea is simple try every number from 1-9 on every single empty block and check the row, column and 3x3 grid if the number already exists, if yes don't continue and try with a different number and if no try with the next empty block.

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
QA Engineer
3 rounds | 6 problems
Interviewed by Park+
1224 views
0 comments
0 upvotes
SDE - Intern
3 rounds | 5 problems
Interviewed by Park+
1329 views
0 comments
0 upvotes
SDE - 1
3 rounds | 7 problems
Interviewed by Park+
1159 views
0 comments
0 upvotes
SDE - 1
3 rounds | 7 problems
Interviewed by Park+
475 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Arcesium
3688 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Arcesium
2650 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by BNY Mellon
2324 views
0 comments
0 upvotes