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

SDE - 1

Slice
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
I got to know about the field of computer science in my class 11th. I found it interesting and decided that I will pursue my career in the field of computer science. I took admitted to B.Tech CSE and learned various concepts like DSA and all.
Application story
It was the peak placement season, and every student in 4th year was waiting for the company to visit the campus. I was informed that Slice was going to visit our campus, and I was very excited as I was confident in my coding skills.
Why selected/rejected for the role?
I was confident during the full interview process. Actually, I worked a lot on my communications skills and I think they were the main reasons for me getting par the selection process.
Preparation
Duration: 4 months
Topics: Data Structures, Algorithms, DBMS, OOPS, OS
Tip
Tip

Tip 1 : Be real during the interview and don’t show off. 
Tip 2 : Practice Data Structures and Algorithms based problems as only through practice you will be able to solve questions quickly during the interview.
Tip 3 : Also prepare for theory subjects like Object-Oriented Programming Systems, Database Management Systems, Computer networks, etc.

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

Tip 1: Keep your resume simple.
Tip 2: Minimum 2 projects

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 mins
Interview date11 Feb 2022
Coding problem2

1. Count Leaf Nodes

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

You are given a Binary tree. You have to count and return the number of leaf nodes present in it.

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child

A node is a leaf node if both left and right child nodes of it are NULL.

Problem approach

I used tree traversal approach to solve the question and check the left and right children of the node if they both are NULL then just print that node. It passed all test cases.

Try solving now

2. Minimum Operations

Easy
20m average time
82% success
0/40
Asked in companies
MicrosoftBNY MellonLinkedIn

You are given an array 'ARR' of 'N' positive integers. You need to find the minimum number of operations needed to make all elements of the array equal. You can perform addition, multiplication, subtraction or division with any element on an array element.

Addition, Subtraction, Multiplication or Division on any element of the array will be considered as a single operation.

Example:

If the given array is [1,2,3] then the answer would be 2. One of the ways to make all the elements of the given array equal is by adding 1 to the array element with value 1 and subtracting 1 from the array element with value 3. So that final array would become [2,2,2]. 
Problem approach

I tried solving it using Dp approach but not able to pass test cases.

Try solving now
02
Round
Medium
Video Call
Duration60 mins
Interview date17 Feb 2022
Coding problem2

1. Spiral Order Traversal of a Binary Tree

Easy
20m average time
75% success
0/40
Asked in companies
SliceOYOMicrosoft

You have been given a binary tree of 'N' nodes. Print the Spiral Order traversal of this binary tree.

For example
For the given binary tree [1, 2, 3, -1, -1, 4, 5, -1, -1, -1, -1]
    1
   / \
  2   3
     / \
    4   5

Output: 1 3 2 4 5
Problem approach

I used the approach based on using two stacks. We can use one stack for printing from left to right and another stack for printing from right to left. In every iteration, we have nodes of one level in one of the stacks. We print the nodes and push nodes of the next level in another stack.

Try solving now

2. Set Matrix Zeros

Easy
30m average time
65% success
0/40
Asked in companies
AmazonDunzoGoldman Sachs

You are given an N x M integer matrix. Your task is to modify this matrix in place so that if any cell contains the value 0, then all cells in the same row and column as that cell should also be set to 0.

Requirements:

  • If a cell in the matrix has the value 0, set all other cells in that cell's row and column to 0.
  • You should perform this modification in place (without using additional matrices).

You must do it in place.

For Example:

If the given grid is this:
[7, 19, 3]
[4, 21, 0]

Then the modified grid will be:
[7, 19, 0]
[0, 0,  0]
Try solving now
03
Round
Easy
HR Round
Duration45 mins
Interview date20 Feb 2022
Coding problem1

1. HR Questions

He asked me to introduce myself and then asked about my CGPA and other academic stuff.
Tell me about your projects mentioned in your resume.

Problem approach

Tip 1: Just gave the interviewer a basic introduction about me with the CGPA and other internship experiences.
Tip 2: I explained the basic working of my projects and technology stack on which my projects were developed. Then he asked me for flow chart for one of my projects and I explained to him properly, the flow chart of, my project with all the necessary details.

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
4 rounds | 7 problems
Interviewed by Slice
3324 views
1 comments
0 upvotes
SDE - 1
3 rounds | 5 problems
Interviewed by Slice
3388 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by Slice
2344 views
0 comments
0 upvotes
SDE - 1
4 rounds | 5 problems
Interviewed by Slice
2081 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes