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

SDE - 1

IBM
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
At the starting, i was a very bad student in terms of data structure and algorithm but when i realized that this is the only way to get placement then i started preparation in this field.
Application story
I applied to the company when the company come to our college for the placements .
Why selected/rejected for the role?
I was rejected because i was not able to answer all the questions which were asked in the exam
Preparation
Duration: 4 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : OOPS - You should be well versed with basic OOPS principles
Tip 2 : You should be confident and have profound knowledge about the projects you worked on
Tip 3 : Basic DB concepts like joins, normalisation

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

Tip 1 : Have some projects on resume.
Tip 2: Do not put false things on resume.

Interview rounds

01
Round
Easy
Video Call
Duration45 mins
Interview date22 Nov 2022
Coding problem2

1. Best Time to Buy and Sell Stock

Moderate
20m average time
80% success
0/80
Asked in companies
IntuitOptumOYO

You are given an array/list 'prices' where the elements of the array represent the prices of the stock as they were yesterday and indices of the array represent minutes. Your task is to find and return the maximum profit you can make by buying and selling the stock. You can buy and sell the stock only once.

Note:

You can’t sell without buying first.
For Example:
For the given array [ 2, 100, 150, 120],
The maximum profit can be achieved by buying the stock at minute 0 when its price is Rs. 2 and selling it at minute 2 when its price is Rs. 150.
So, the output will be 148.
Problem approach

You have been given an array 'PRICES' consisting of 'N' integers where PRICES[i] denotes the price of a given stock on the i-th day. You are also given an integer 'K' denoting the number of possible transactions you can make.
Your task is to find the maximum profit in at most K transactions. A valid transaction involves buying a stock and then selling it.

Try solving now

2. Flatten BST To A Sorted List

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

You have been given a Binary Search Tree (BST). Your task is to flatten the given BST to a sorted list. More formally, you have to make a right-skewed BST from the given BST, i.e., the left child of all the nodes must be NULL, and the value at the right child must be greater than the current node.

A binary search tree (BST), also called an ordered or sorted binary tree, is a rooted binary tree whose internal nodes each store a value greater than all the values in the node's left subtree and less than those in its right subtree.

Follow Up :
Can you solve this in O(N) time and O(H)  space complexity?
Problem approach

You have been given a Binary Tree of 'N' nodes, where the nodes have integer values. Your task is to find the In-Order traversal of the given binary tree.

Try solving now
02
Round
Easy
HR Round
Duration30 mins
Interview date22 Nov 2022
Coding problem1

1. Basic HR questions

Why you what to join IBM?
List your weakness?
What you know about IBM

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
4300 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