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

SDE - 1

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

Interview preparation journey

expand-icon
Preparation
Duration: 1 Month
Topics: Arrays, Trees, Linked List, Greedy Algorithm, Divide And Conquer
Tip
Tip

Tip 1 : The approach should be clear and should be familiar with the basics of DSA.
Tip 2 : Practice questions on famous algorithms.
Tip 3 : CS Fundamentals are really important for the interview.

Application process
Where: Other
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Projects are important and you should be able to explain your project.
Tip 2 : Don't add things if you're not confident in that.

Interview rounds

01
Round
Hard
Online Coding Test
Duration60 Minutes
Interview date25 Feb 2022
Coding problem2

First round was taken by JobTwine, a third party company. So in first round I was asked 2 Leetcode Hard questions. I had to solve it in front of him by sharing my screen.
And he also asked about basics of OS and DBMS.

1. Shortest subarray with sum at least K

Moderate
15m average time
85% success
0/80
Asked in companies
ApplePayPalMAQ Software

Given an array/list 'ARR' of integers and an integer ‘K’. You are supposed to return the length of the shortest subarray that has a sum greater than or equal to ‘K’. If there is no subarray with a sum greater than or equal to K, then return -1.

Note :
An array ‘B’ is a subarray of an array ‘A’ if ‘B’ that can be obtained by deletion of, several elements(possibly none) from the start of ‘A’ and several elements(possibly none) from the end of ‘A’. 
Try solving now

2. Reverse List In K Groups

Hard
15m average time
85% success
0/120
Asked in companies
SAP LabsSamsungIBM

You are given a linked list of 'n' nodes and an integer 'k', where 'k' is less than or equal to 'n'.


Your task is to reverse the order of each group of 'k' consecutive nodes, if 'n' is not divisible by 'k', then the last group of nodes should remain unchanged.


For example, if the linked list is 1->2->3->4->5, and 'k' is 3, we have to reverse the first three elements, and leave the last two elements unchanged. Thus, the final linked list being 3->2->1->4->5.


Implement a function that performs this reversal, and returns the head of the modified linked list.


Example:
Input: 'list' = [1, 2, 3, 4], 'k' = 2

Output: 2 1 4 3

Explanation:
We have to reverse the given list 'k' at a time, which is 2 in this case. So we reverse the first 2 elements then the next 2 elements, giving us 2->1->4->3.


Note:
All the node values will be distinct.


Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date1 Mar 2022
Coding problem1

For the second round I was asked a DSA hard question and asked to solve sharing my screen. He asked OS DBMS AND OOPS.

1. Increasing-Decreasing Array

Moderate
0/80
Asked in companies
MicrosoftPark+

Axel is busy with his football match and wants you to solve his math assignment.

You are given an integer ‘N’ denoting the size of the array and you are given a string ‘S’ of size equal to ‘N-1’ containing only characters ‘P’ and ‘N’.

You have to find an array consisting of unique elements in the range [1, N] which satisfies the following constraints:

A [ i + 1 ] - A [ i ] > 0 if and only if  S [ i ] = ‘P’

A [ i + 1 ] - A [ i ] < 0 if and only if  S [ i ] = ‘N’

for all 'i' belonging to [0, N-1] inclusive

In other words, ‘P’ and ‘N’ denote whether the difference between adjacent array elements is Positive or Negative.

Note:

If there are multiple answers possible, return any one of them.
Custom Test Case:
If you are running a custom test case, then 1 will be printed if the returned array is correct, else 0 will be printed.

If you wish to check your output then use print statements before returning the final answer.
For Example :
If N = 5 and the array is: { 1, 6, 4, 3, 5 }

We will return { 6, -1, 5, 5, 6 }
because 6 is the first element to the right of 1 that is greater than 1,
no element exists that is greater than 6,
5 is the first element to the right of 4 that is greater than 4,
5 is the first element to the right of 3 that is greater than 3,
6 is the first element to the circular-right of 5 that is greater than 5.
Try solving now
03
Round
Easy
Video Call
Duration60 Minutes
Interview date3 Jun 2022
Coding problem1

In the final round, 1 DSA question, OS, SQL query medium, DBMS, OS and API.

1. Sort Elements By Frequency

Easy
15m average time
85% success
0/40
Asked in companies
CIS - Cyber InfrastructureOracleAmazon

You are given a list of a repeated set of integers. Your task for the problem is to return a list of the given elements in decreasing sorted order of their frequency of repetition in the given list with the element with the highest frequency of repetition first and so on.

Note :
If two numbers have the same frequency then keep the one that was present before the other in the original given list (array) first.
For Example :
Input:  arr[] = {2, 5, 2, 8, 5, 6, 8, 8}
Output: arr[] = {8, 8, 8, 2, 2, 5, 5, 6}

Explanation :
When you sort the array based on the decreasing order of the frequency of repetition of integers in the original array, 
you’ll find that the element ‘8’ is the integer with the most repeated values therefore it would be arranged first after which since both 2 and 5 have the same number of repeated 
values in the original array but since the 2 arrived first so we will first arrange 2 and then 5 in our resultant array, while would be the last element after sorting here.
Problem approach

I first did it by dictionary, and then sorted the dictionary using in-built function.
But then he asked me to do it another way without using in-built functions.
Then I gave the approach of priority queue and did the questions using in-built priority queue.
But then he asked me to design priority queue and then I designed it.

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
SDE - 1
3 rounds | 7 problems
Interviewed by Park+
1159 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by Park+
1104 views
0 comments
0 upvotes
SDE - 1
3 rounds | 5 problems
Interviewed by Park+
1115 views
0 comments
0 upvotes
SDE - 1
3 rounds | 7 problems
Interviewed by Park+
474 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
6261 views
3 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by BNY Mellon
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by CIS - Cyber Infrastructure
2159 views
0 comments
0 upvotes