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

SDE - Intern

Sciforn
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
I practiced DSA continuously for three years, and I thought I had a great base for it, but in the end, I was not selected by any of the companies in FAANG. However, I continued to aspire to join them, and after two years of completing my graduation, I got this opportunity.
Application story
It was through campus selection. I was curious about it from the very start, as getting into any of those giants of the industry was my dream. After a few days, I received an email from HR about the selection of my resume for the interview and the interview process.
Why selected/rejected for the role?
I think I was on point with my coding solutions to the questions asked in the interviews. I provided the optimal solutions and gave correct explanations to some theory questions that were asked.
Preparation
Duration: 2 months
Topics: Data Structures and Algorithms, OOPS, DBMS, Computer Networks, Operating System
Tip
Tip

Tip 1: Practice questions from all the topics as much as possible. 

Tip 2: Be very attentive while working on projects in college or elsewhere, as they will be asked about in detail if mentioned on your resume. 

Tip 3: Be consistent while practicing and try a variety of questions rather than doing many questions of the same kind.

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

Tip 1: You should know everything you have mentioned in your resume. Never brag in your resume. Be very precise. It doesn’t matter how much you have done; what matters is that you are very confident and clear about what you have accomplished.

Tip 2: Make sure to include your projects and the programming languages you code in on your resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 mins
Interview date16 Mar 2022
Coding problem1

The test had 28 mcqs and 2 coding questions.
The test was proctored. One needed to have webcam on.
A sample test link was provided before test to get familiar with the mettl platform.

1. Count Inversions

Moderate
40m average time
55% success
0/80
Asked in companies
MicrosoftAdobeSamsung R&D Institute

For a given integer array/list 'ARR' of size 'N' containing all distinct values, find the total number of 'Inversions' that may exist.

An inversion is defined for a pair of integers in the array/list when the following two conditions are met.

A pair ('ARR[i]', 'ARR[j]') is said to be an inversion when:

1. 'ARR[i] > 'ARR[j]' 
2. 'i' < 'j'

Where 'i' and 'j' denote the indices ranging from [0, 'N').
Problem approach

Brute Force Approach got submitted.
Approach:
I used and O(n^2) approach, where I used 2 for loops.
step1 : First loop was from index 0 to sizeof given array i.e. i
step2 : inside this was another loop from index of first loop + 1 to the end of array i.e. j.
step3 : If the value of array[i]>array[j] add 1 to the count of inversions.
Then, return count of inversions at the end of the for loops.

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

LiveCode : To write code, it was not a compiler.
The interviewer was quite supportive.

1. Sorted linked list to balanced BST

Moderate
25m average time
70% success
0/80
Asked in companies
Goldman SachsAmazonMorgan Stanley

You have been given a singly linked list in which nodes are present in increasing order. Your task is to construct a Balanced Binary Search Tree with the same data elements as the given Linked List.

A Balanced BST is defined as a BST in which the height of two subtrees of every node differs no more than 1.

Problem approach

I solved this problem with the very first approach that can come to anyone's mind.
That is using recursion
Step 1 : Make a separate function to find middle element of a list using runner technique.
Step 2 : Find middle element of the list and make it the root of the BST and pass the left part of middle node of the list in the function to return the left node of the current node of BST and right part to get the right child subtree of the current node of BST.
Step 3 : Return root of BST.

Try solving now

2. Stack Implementation Using Array

Easy
20m average time
70% success
0/40
Asked in companies
QualcommNatwest GroupOracle

Stack is a data structure that follows the LIFO (Last in First out) principle. Design and implement a stack to implement the following functions:

1. Push(num): Push the given number in the stack if the stack is not full.

2. Pop: Remove and print the top element from the stack if present, else print -1.

3. Top: Print the top element of the stack if present, else print -1.

4. isEmpty: Print 1 if the stack is empty, else print 0.

5. isFull: Print 1 if the stack is full, else print 0.


You have been given ‘m’ operations which you need to perform in the stack. Your task is to implement all the functions of the stack.


Example:
We perform the following operations on an empty stack which has capacity 2:

When operation 1 1 is performed, we insert 1 in the stack.

When operation 1 2  is performed, we insert 2 in the stack. 

When operation 2 is performed, we remove the top element from the stack and print 2.

When operation 3 is performed, we print the top element of the stack, i.e., 3.

When operation 4 is performed, we print 0 because the stack is not empty.

When operation 5 is performed, we print 0 because the stack is size 1, which is not equal to its capacity.
Problem approach

Stack implementation.

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
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4657 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
961 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6451 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3452 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15481 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15339 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10142 views
2 comments
0 upvotes