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

SDE - 1

IBM
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structure, DBMS, OOPs, Operating System, Data Networks
Tip
Tip

Tip 1 : Properly Revise Coding Questions
Tip 2 : Don't take the theoretical subject lightly.

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

Tip 1 : Make sure you know even a single bit of your resume
Tip 2 : Be confident in every question

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date11 Nov 2021
Coding problem3

It was purely a coding round. There were no MCQs. There were 4 coding questions of medium level. It was in the evening.

1. LCA Of Binary Tree

Moderate
10m average time
90% success
0/80
Asked in companies
GrabDisney + HotstarShareChat

You have been given a Binary Tree of distinct integers and two nodes ‘X’ and ‘Y’. You are supposed to return the LCA (Lowest Common Ancestor) of ‘X’ and ‘Y’.


The LCA of ‘X’ and ‘Y’ in the binary tree is the shared ancestor of ‘X’ and ‘Y’ that is located farthest from the root.


Note :
You may assume that given ‘X’ and ‘Y’ definitely exist in the given binary tree.
For example :
For the given binary tree

Example

LCA of ‘X’ and ‘Y’ is highlighted in yellow colour.
Problem approach

I don't remember the exact question but the question was similar to this question.

Try solving now

2. Longest Increasing Subsequence

Moderate
30m average time
65% success
0/80
Asked in companies
IBMVisaOYO

For a given array with N elements, you need to find the length of the longest subsequence from the array such that all the elements of the subsequence are sorted in strictly increasing order.

Strictly Increasing Sequence is when each term in the sequence is larger than the preceding term.

For example:
[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
Problem approach

It is the variation of the standard question 'Longest common subsequence'.

Try solving now

3. Maximum Subarray Sum

Moderate
25m average time
75% success
0/80
Asked in companies
CultfitPayPalWalmart

Given an array of numbers, find the maximum sum of any contiguous subarray of the array.


For example, given the array [34, -50, 42, 14, -5, 86], the maximum sum would be 137, since we would take elements 42, 14, -5, and 86.


Given the array [-5, -1, -8, -9], the maximum sum would be -1.


Follow up: Do this in O(N) time.

Problem approach

Kedan's algorithm can be used

Try solving now
02
Round
Medium
Video Call
Duration30 minutes
Interview date23 Nov 2021
Coding problem2

I got to know about this round through call. It was in the evening. The interviewer was quite friendly and he asked me a lot of questions related to Operating systems, Data structure, DBMS, and projects. I explained my project in detail and He also asked so many counter questions. He asked me so many output based questions and even changed so many things and every time he asked me to give the output.

1. Count Univalue Subtrees

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

You are given a binary tree. Return the count of unival sub-trees in the given binary tree. In unival trees, all the nodes, below the root node, have the same value as the data of the root.

For example: for the binary tree, given in the following diagram, the number of unival trees is 5.

alt-text

Try solving now

2. DBMS

What are different types of joins?

03
Round
Easy
HR Round
Duration30 minutes
Interview date26 Nov 2021
Coding problem1

The interviewer was very friendly.

1. Basic HR Questions

Tell me about Yourself

Why IBM?

What are your strengths?

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
2 rounds | 2 problems
Interviewed by IBM
4299 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by IBM
1785 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by IBM
2297 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by IBM
887 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