Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Procol interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Procol
upvote
share-icon
3 rounds | 9 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 Months
Topics: Data Structures, OOPS, Operating system, Databases, Javascript, NodeJs, React
Tip
Tip

Tip 1 : Do at least two good projects relevant to the company and role applying for.
Tip 2 : Always read the job description carefully and do some research about the company
Tip 3 : Have a good knowledge of Computer Science fundamentals.

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

Tip 1 : Include some relevant skills required in the job description.
Tip 2 : Make a single-page resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date9 Sep 2020
Coding problem3

The test consists of 2 sections: MCQ’s and 3 coding questions. It was a 90 minutes test, which could be started anytime between the time window of 2 hrs (In my case window was open from 4 PM to 6 PM). The test was proctored and any suspicious activity would have cancelled our test.

1. Game of Dominoes

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

Rafiq loves to play with dominoes. On his birthday his father gifted him ‘N’ piles of dominoes, where each pile contains a positive number of dominoes stacked above.

Rafiq loves to play with piles if they are of equal heights, so his father decides to make changes to the piles. His father wonders for each consecutive window of length ‘K’ what is the minimum cost to make them all of the equal height. Hence his father wants to calculate the cost for each window.

The cost for removing and adding one domino on any pile is one unit.

Determine what is the cost to make all elements equal in a window of size 'K', for all windows of size 'K' in an 'N'-sized array/list 'heights'.

Try solving now

2. STRING KA KHEL

Moderate
15m average time
85% success
0/80
Asked in companies
AmazonWalmartCIS - Cyber Infrastructure

Ninja started a gaming shop and for that shop, he is planning to make a new game ‘String Ka Khel’. In that game user is provided with ‘N’ number of strings and he has to find out the maximum length of strings he can form by joining these ‘N’ strings. For joining two strings there is a condition that two strings will only join if the last character of the first string is same as the last character of the second string. If the user will find out the correct answer he will be given Coding Ninja goodies by the Ninja.

So your task is to find the maximum length of string which can be formed by joining strings according to the given condition. If no such combination exists return ‘0’. Strings only contain the letter ‘B’ and ‘R’.

Example:

The string is ‘RR’, ‘RB’ so we can combine ‘RR’ and ‘RB’ as the last character of ‘RR’ i.e ‘R’ matches with the first character of ‘RB’. But we cant combine ‘RB’ and ‘RR’ as the last character of ‘RB’ i.e ‘B’ doesn't matches with the first character of ‘RR’ i.e ‘R’ so our answer is '4'.
Try solving now

3. Minimum Operations To Make Array Equal

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

You are given an array ‘ARR’ of length ‘N’ which is filled with the values such that ARR[i] = (2*i + 1). You have to perform operations on the ‘ARR’ to make all elements of the array equal. In one operation, you can choose two elements from the array ‘ARR’ say ‘i’ and ‘j’, and can increment the value of ‘ARR[i]’ by one and decrement the value of ‘ARR[j]’ by one.

You have to find the minimum number of operations to make all the elements of the array ‘ARR’ equal. It is guaranteed that all elements of the array can be made equal using some operations.

Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date10 Jan 2021
Coding problem4

It was a 60 minutes video call round held on Google Meet.The Interviewer was very helpful.

1. Find power of a number

Easy
15m average time
80% success
0/40
Asked in companies
CognizantAccentureAmazon

Ninja is sitting in an examination hall. He is encountered with a problem statement, "Find ‘X’ to the power ‘N’ (i.e. ‘X’ ^ ‘N’). Where ‘X’ and ‘N’ are two integers."

Ninja was not prepared for this question at all, as this question was unexpected in the exam.

He is asking for your help to solve this problem. Help Ninja to find the answer to the problem.

Note :

For this question, you can assume that 0 raised to the power of 0 is 1.
Try solving now

2. Implement Stack With Linked List

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

You must implement the Stack data structure using a Singly Linked List.


Create a class named 'Stack' which supports the following operations(all in O(1) time):


getSize: Returns an integer. Gets the current size of the stack

isEmpty: Returns a boolean. Gets whether the stack is empty

push: Returns nothing. Accepts an integer. Puts that integer at the top of the stack

pop: Returns nothing. Removes the top element of the stack. It does nothing if the stack is empty.

getTop: Returns an integer. Gets the top element of the stack. Returns -1 if the stack is empty
Try solving now

3. Pair Sum

Easy
15m average time
90% success
0/40
Asked in companies
AccentureGrofersOla

You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to return the list of all pairs of elements such that each sum of elements of each pair equals 'S'.

Note:

Each pair should be sorted i.e the first value should be less than or equals to the second value. 

Return the list of pairs sorted in non-decreasing order of their first value. In case if two pairs have the same first value, the pair with a smaller second value should come first.
Try solving now

4. Technical Questions

What is context Switching?
What are the joins?

It started with a discussion of my projects and internship.

03
Round
Medium
Video Call
Duration60 Minutes
Interview date10 Jan 2021
Coding problem2

1. Search In Infinite Sorted 0-1 Array

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

You are given an infinite array consisting of only ones and zeroes, in sorted order. You have to find the index of the first occurrence of 1.

Example:
If the array is 0 0 0 0 1 1 1 1… then, the first occurrence of 1 will be at index 4 therefore the answer here is 4.
Note:
As the array size is infinite, the actual array won’t be given to you. Instead, you will be able to access the array elements by calling a method named ‘get’.

get(i) : returns the value present at index I.

Indexing is 0-based. 

Instead of representing an infinite array in the input, we give the index of the first occurrence of 1 in the input itself. However, this input will be completely hidden from the user.

It is guaranteed that the answer will fit in a 64-bit integer.
Try solving now

2. Technical Questions

What is Normalization?

What is LRU cache? How to implement it? Any real-life example where LRU is used?

What are the normal forms? Explain any three normal forms.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

Which is a DDL command in SQL?

Choose another skill to practice
Start a Discussion
Similar interview experiences
Product Intern
6 rounds | 9 problems
Interviewed by Squadstack
0 views
0 comments
0 upvotes
Business Technology Analyst
4 rounds | 5 problems
Interviewed by Squadstack
2345 views
0 comments
0 upvotes
SDE - 1
3 rounds | 10 problems
Interviewed by Sterlite Technologies Limited
2202 views
0 comments
0 upvotes
Product Engineer
3 rounds | 5 problems
Interviewed by Squadstack
1472 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
13316 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
12330 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
8891 views
2 comments
0 upvotes