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

SDE - 1

Accolite
upvote
share-icon
3 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Journey
My personal journey is very challenging coming from a middle-class family I need not had the access to a computer for a long time. I came to know about computer when i joined my college but from there i never look back again.
Application story
This is an on-campus placement opportunity for me; the company visited my campus for the placement.
Why selected/rejected for the role?
This was a great experience for me i was able to perform well, and i am satisfied with the effort i have put forward.
Preparation
Duration: 6 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1: Prepare your resume well.
Tip 2: Deploy your projects so that the interviewer can view them. Also, provide a hyperlink in your resume.
Tip 3: Be thorough with Data Structures and Algorithms. Also, prepare well on topics such as OS and DBMS.

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

Tip 1: Deploy your projects so that the interviewer can view them. Also, provide a hyperlink on your resume.
Tip 2: It's not important to have fancy projects. Only mention those on which you're confident.

Interview rounds

01
Round
Easy
Video Call
Duration60 minutes
Interview date9 Dec 2022
Coding problem2

1. Largest rectangle in a histogram

Hard
25m average time
75% success
0/120
Asked in companies
FacebookAppleAmazon

You have been given an array/list 'HEIGHTS' of length ‘N. 'HEIGHTS' represents the histogram and each element of 'HEIGHTS' represents the height of the histogram bar. Consider that the width of each histogram is 1.

You are supposed to return the area of the largest rectangle possible in the given histogram.

For example :
In the below histogram where array/list elements are {2, 1, 5, 6, 2, 3}.

alt text

The area of largest rectangle possible in the given histogram is 10.
Problem approach

Tip 1 : I used a DP approach

Try solving now

2. Permutations

Moderate
10m average time
90% success
0/80
Asked in companies
CIS - Cyber InfrastructurePhamaGen.AiGoogle inc

A permutation is a mathematical technique that determines the number of possible arrangements in a set when the order of the arrangements matters. A string of length 'N' has 'N'! permutations.

Given an array of distinct integers, return all the possible permutations of the array.

Example:
'ARR[]' = [1, 2]

The size of the array is 2. So, the total number of permutations is 2! = 2. The possible permutations are [1, 2] (the array itself) and [2,1] where the position of element 1 in the original array is swapped with element 2 and vice-versa.   
Note:
1. All the numbers in the array are unique.

2. You can return the answer in any order.

3. The original array is also a permutation of the given array.
Problem approach

A permutation is a mathematical technique that determines the number of possible arrangements in a set when the order of the arrangements matters. A string of length 'N' has 'N'! permutations.

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date9 Dec 2022
Coding problem3

1. Java Questions

Is Multiple inheritance possible in java? (Learn)
How is it implemented in java? (Learn)
Explain the concept of exception handling done in java. (Learn)

2. Theory Questions

What all sorting algorithms you know? (Learn)
What are their complexities? (Learn)

3. N-th Node From The End

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

You are given a Singly Linked List of integers. You have to find the N-th node from end.

For Example
If the given list is (1 -> -2 -> 0 -> 4) and N=2:

example

Then the 2nd node from the end is 0.
Problem approach

Iter over list, if n = 1, return element past head, otherwise, iterate untill nth element, remove it and return head of list.

Try solving now
03
Round
Medium
Video Call
Duration60 minutes
Interview date9 Dec 2022
Coding problem2

1. Merge k sorted lists

Hard
25m average time
65% success
0/120
Asked in companies
AmazonIntuitPayPal

Given 'k' sorted linked lists, each list is sorted in increasing order. You need to merge all these lists into one single sorted list. You need to return the head of the final linked list.


For example:
Input:
3
3
4 6 8
3
2 5 7 
2
1 9

Output:
1 2 4 5 6 7 8 9 

Explanation:
First list is: 4 -> 6 -> 8 -> NULL
Second list is: 2 -> 5 -> 7 -> NULL
Third list is: 1 -> 9 -> NULL
The final list would be: 1 -> 2 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 -> NULL
Problem approach

Create a priority queue of the heads of linked lists. While there are elements in the priority queue, remove the smallest head and add it to another list. Increase the head. If there are more elements in that list, add the head back to the priority queue.

Try solving now

2. Puzzle

You are given a multicore server and a distributed queue. You need to fetch elements from the queue and store them into the database.

A solution was suggested of running a master thread, which checks the queue and allocates more threads for processing entries.

Problem approach

Tip 1: Ask more questions about the problem.
Tip 2: No solution is the best; starting with a simple approach is okay.
Tip 3: Clearly communicate your thinking.

Here's your problem of the day

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

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Accolite
776 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Accolite
677 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by Accolite
840 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 8 problems
Interviewed by Accolite
668 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes