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

SDE - 1

Accolite
upvote
share-icon
5 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Journey
Got a Full-Time Offer from Accolite Digital !! Education - B.Tech in Computer Science from tier 3 college YOE - 0 Date of Offer - 4th January 2023 Company - Accolite Digital Title - Software Engineer Mode - Off Campus(she code hiring) INTERVIEW EXPERIENCE It was an off-campus She code hiring opportunity and there were total of 5 rounds. ROUND 1 - ONLINE ASSESSMENT Duration - 90 min 30 MCQs on CS Fundamentals 1 coding question https://www.geeksforgeeks.org/count-minimum-steps-get-given-desired-array/ ROUND 2 - TECHNICAL INTERVIEW 1 Duration - 30 min Introduction Project discussion 1 coding questions You have 2 strings without convert into integers add them and give a sum of both string . https://www.geeksforgeeks.org/sum-two-large-numbers/ OOPS concepts - Polymorphism, Virtual keyword DDL and DML command DROP vs DELETE vs TRUNCATE Any questions. ROUND 3 - TECHNICAL INTERVIEW 2 Duration - 60 min Introduction Project discussion You have n numbers of telephone numbers count how many unique telephone numbers and how many same telephone numbers (use an unordered map for storing numbers and its freq-like key-value pair solution key is the telephone number and the value is its freq) Stack and queue real-life implementation What is a linked list and how would you check if it is circular or not?(only approach I mention 3 approaches) Merge sort and quick sort Graph and tree (theory) 3 Coding question Implement a queue using 2 stacks Merge 2 sorted arrays print fibonacci series in equilateral series Basic output question on pre and post-increment operator int a; i=5; a=++i+i--; print a and i value Swap the value of 2 variables without using an extra variable Any questions. ROUND 4 - TECHNICAL INTERVIEW 3 Duration - 30 min Introduction Project discussion Basic OOPS Question What all data structures do you know? BFS AND DFS sorting algorithm like where we use insertion sort and where quick and merge all sorting algorithms where we use all sorting algorithm which sorting algorithm is best and why A coding question it was look and say problem. one ques is base on an aptitude problem but the idea is to apply the DSA concept we have 100 apples and 2 boxes 1 apple's weight is 200 g and all 99 apple wait is 100 g so find out which apple 200 g wait (apply divide and conquer approach) Any questions. ROUND 5 - HR ROUND Duration - 30 min Introduction Project talking about my hometown like what is famous and what is +unique. Why should we hire you? Long-term and short-term goals where do you see yourself in 5 years? strengths and weakness Then she said "Yes, you are selected!!" and discussed the salary and other details about the company. I hope it was helpful !!
Application story
One of my friends sends me the link to a LinkedIn post that was referring students and also he refer me after that all processes go smoothly.
Why selected/rejected for the role?
Mine was different from others I have solved more than 900+ problems on DSA also I maintain 300+ streaks on leetcode and also 100+ on coding ninja and 100+ on gfg which is not easy to do and also I am an Expert in coding ninja and also Global Rank - 4409 in gfg.
Preparation
Duration: 7 months
Topics: Tree, Graph, DP, Recursion, Sorting Algorithms, Trie
Tip
Tip

Tip 1 : You have to give time to coding at least 1 hr per day.
Tip 2 : First, clear your basics, then go for advanced topics.
 

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

Tip 1 : Make good projects and put unique things on your resume.
Tip 2 : Also always updated your resume with your live coding contest ranking

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date29 Dec 2022
Coding problem1

1. Minimum steps to reach target by a Knight

Moderate
25m average time
60% success
0/80
Asked in companies
OptumMicrosoftIntuit

You have been given a square chessboard of size ‘N x N’. The position coordinates of the Knight and the position coordinates of the target are also given.

Your task is to find out the minimum steps a Knight will take to reach the target position.

alt text

Example:
knightPosition: {3,4}
targetPosition: {2,1}

alt text

The knight can move from position (3,4) to positions (1,3), (2,2) and (4,2). Position (4,2) is selected and the ‘stepCount’ becomes 1. From position (4,2), the knight can directly jump to the position (2,1) which is the target point and ‘stepCount’ becomes 2 which is the final answer. 

Note:

1. The coordinates are 1 indexed. So, the bottom left square is (1,1) and the top right square is (N, N).

2. The knight can make 8 possible moves as given in figure 1.

3. A Knight moves 2 squares in one direction and 1 square in the perpendicular direction (or vice-versa).
Problem approach

Take the target array first. 

Initialize the result as 0. 

If all are even, divide all elements by 2 
and increment the result by 1. 

Find all odd elements, and make them even by 
reducing them by 1. and for every reduction,
increment result by 1.

Finally, we get all zeros in the target array.

Try solving now
02
Round
Medium
Video Call
Duration30 minutes
Interview date3 Jan 2023
Coding problem1

1. Sum of Two Values

Moderate
30m average time
70% success
0/80
Asked in companies
LinkedInInfosysIncedo Inc.

You are given an array of positive integers, ‘NUMS’, and provided with an integer ‘K’. Your take is to find out whether it is possible to find two distinct elements of ‘NUMS’ whose sum is equal to ‘K’.

By distinct we mean the index of the elements should be distinct, not necessarily their value.

Problem approach

The idea is based on school mathematics. We traverse both strings from end, one by one add digits and keep track of carry. To simplify the process, we do following: 
1) Reverse both strings. 
2) Keep adding digits one by one from 0’th index (in reversed strings) to end of smaller string, append the sum % 10 to end of result and keep track of carry as sum/10. 
3) Finally reverse the result.

Try solving now
03
Round
Medium
Video Call
Duration60 minutes
Interview date3 Jan 2023
Coding problem3

1. Queue Using Two Stacks

Easy
15m average time
85% success
0/40
Asked in companies
AmazonGoogleMicrosoft

You will be given ‘Q’ queries. You need to implement a queue using two stacks according to those queries. Each query will belong to one of these three types:

1 ‘X’: Enqueue element ‘X’  into the end of the nth queue. Returns true after the element is enqueued.

2: Dequeue the element at the front of the nth queue. Returns -1 if the queue is empty, otherwise, returns the dequeued element.
Note:
Enqueue means adding an element to the end of the queue, while Dequeue means removing the element from the front of the queue.
Problem approach

enQueue(q, x): 

While stack1 is not empty, push everything from stack1 to stack2.
Push x to stack1 (assuming size of stacks is unlimited).
Push everything back to stack1.
Here time complexity will be O(n)

deQueue(q): 

If stack1 is empty then error
Pop an item from stack1 and return it
Here time complexity will be O(1)

Try solving now

2. Merge Two Sorted Arrays

Moderate
15m average time
85% success
0/80
Asked in companies
AmazonOlaTata Consultancy Services (TCS)

Ninja has been given two sorted integer arrays/lists ‘ARR1’ and ‘ARR2’ of size ‘M’ and ‘N’. Ninja has to merge these sorted arrays/lists into ‘ARR1’ as one sorted array. You may have to assume that ‘ARR1’ has a size equal to ‘M’ + ‘N’ such that ‘ARR1’ has enough space to add all the elements of ‘ARR2’ in ‘ARR1’.

For example:

‘ARR1’ = [3 6 9 0 0]
‘ARR2’ = [4 10]
After merging the ‘ARR1’ and ‘ARR2’ in ‘ARR1’. 
‘ARR1’ = [3 4 6 9 10]
Problem approach

The idea is to use Merge function of Merge sort. 

Create an array arr3[] of size n1 + n2.
Simultaneously traverse arr1[] and arr2[]. 
Pick smaller of current elements in arr1[] and arr2[], copy this smaller element to next position in arr3[] and move ahead in arr3[] and the array whose element is picked.
If there are remaining elements in arr1[] or arr2[], copy them also in arr3[].

Try solving now

3. N-th Fibonacci Number

Moderate
40m average time
70% success
0/80
Asked in companies
AmazonWalmartTata Consultancy Services (TCS)

You are given an integer ‘N’, your task is to find and return the N’th Fibonacci number using matrix exponentiation.

Since the answer can be very large, return the answer modulo 10^9 +7.

Fibonacci number is calculated using the following formula:
F(n) = F(n-1) + F(n-2), 
Where, F(1) = F(2) = 1.
For Example:
For ‘N’ = 5, the output will be 5.
Problem approach

In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relation 

Fn = Fn-1 + Fn-2
with seed values F1 = 1 and F2 = 1.

Try solving now
04
Round
Medium
Video Call
Duration30 minutes
Interview date4 Mar 2023
Coding problem1

1. Look-And-Say Sequence

Easy
15m average time
85% success
0/40
Asked in companies
BarclaysMicrosoftMakeMyTrip

The Look-And-Say sequence is a sequence of positive integers. The sequence is as follows:

1, 11, 21, 1211, 111221, 312211, 13112221,...

This sequence is constructed in the following way:

The first number is 1.

This is read as “One 1”. 
Hence, the second number will be 11.

The second number is read as “Two 1s”. 
Hence, the third number will be 21.

The third number is read as “One 2, One 1”. 
Hence, the fourth number will be 1211. And so on.

The fourth term is read as “One 1, One 2, Two 1s”.

Hence, the fifth term will be 111221. And so on.

Given an integer N, find the Nth term of the sequence.

Problem approach

The idea is simple, we generate all terms from 1 to n. First, two terms are initialized as “1” and “11”, and all other terms are generated using previous terms. To generate a term using the previous term, we scan the previous term. While scanning a term, we simply keep track of the count of all consecutive characters. For a sequence of the same characters, we append the count followed by the character to generate the next term.

Try solving now
05
Round
Medium
HR Round
Duration20 minutes
Interview date4 Mar 2023
Coding problem1

1. Basic HR Questions

Introduction
Project
Talking about my hometown like what is a famous thing and what is a unique thing in that?
Why should we hire you?
Long-term and short-term goals
Where do you see yourself in 5 years?
Strengths and weakness

Problem approach

Tip 1 : Always be pure 
Tip 2 : Don't lie
Tip 3 : Be confident

Here's your problem of the day

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

Skill covered: Programming

Which operator is used for exponentiation in Python?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Accolite
450 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Accolite
508 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Accolite
425 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 8 problems
Interviewed by Accolite
422 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
107484 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
51829 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
32109 views
6 comments
0 upvotes