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
Preparation
Duration: 6 Months
Topics: Data Structures, Algorithms, OOPS, DBMS, OS
Tip
Tip

Tip 1 : Practice lots of competitive programming.
Tip 2 : Understand and learn DSA
Tip 3 : try to solve real problems through any coding platform like LeetCode, HackerRank, etc.

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

Tip 1 : Do not put false things and over skills in your resume.
Tip 2 : Put some experience and working projects in your resume.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 Minutes
Interview date5 Aug 2021
Coding problem2

Timing-90 Duration Of Assessment 
Need to attempt the test within next 48 after getting mail.

Test is conducted virtually through IBM test platform. Test contains questions related to DBMS, OOPS concept, programming, SQL, and other questions related to Leadership Principles and workstyles.

1. Core Subjects related Questions

We need to answer questions related to Core subjects, DBMS, SQL, OOPS concept, Programming, Behavioral, Leadership Principles and workstyles.

Problem approach

Tip 1: Need to revise topics related to assessment test.
Tip 2: Need to choose one option.
Tip 3: Based upon your knowledge you need to answer.

2. Multiply Strings

Moderate
35m average time
55% success
0/80
Asked in companies
FacebookAmazonIBM

You are given two big numbers ‘A’ and ‘B’ as strings. Your task is to find the product of both the numbers.

Note:

There are no leading zeros in both the strings, except the number 0 itself.
Do not use any built-in Big Integer Library.
For Example:
If, A = 123, and B = 456.
So the product of both numbers will be 56088.
Problem approach

string Solution::multiply(string s1, string s2) {

int m1=s1.size();
int m2=s2.size();

if(s1=="0" || s2=="0")
{
return "0";
}

string ans="";
int carry=0;
string temp="";
for(int j=m2-1;j>=0;j--)
{
temp+='0';
string res=temp;
res.pop_back();

carry=0;

int val=s2[j]-'0';

for(int i=m1-1;i>=0;i--)
{
int x= (s1[i]-'0')*val;

x+=carry;

res.push_back('0' + (x%10));

carry=x/10;

}

while(carry>0)
{
res.push_back('0' + (carry%10));
carry=carry/10;
}

reverse(res.begin(),res.end());

if(ans=="")
{
ans=res;
continue;
}

carry=0;

// now add

string t="";

int k1=ans.size();
int k2=res.size();

int a=k1-1;
int b=k2-1;
val=0;
while(a>=0 || b>=0)
{
val=0;
if(a>=0)
{
val+=(ans[a]-'0');
a--;
}

if(b>=0)
{
val+=(res[b]-'0');
b--;
}

val+=carry;

t.push_back('0' + (val%10));

carry=val/10;

}

while(carry>0)
{
t.push_back('0' + (carry%10));
carry=carry/10;
}

reverse(t.begin(),t.end());
ans=t;

}

int i=0;

while(i {
i++;
}

if(i==ans.size())
{
return "0";
}

return ans.substr(i);

}

Try solving now
02
Round
Easy
Face to Face
Duration45 minutes
Interview date26 Aug 2021
Coding problem1

We need to solve 1 or 2 coding question within 1 hour in which we need to explain our approach before writing the code and we need to give optimal solution of the approach.

Interviewer also asks some other questions as well like your introduction, some core subjects question related to DBMS, OOPS concept, programming, SQL, and other questions related to Leadership Principles and workstyles.

1. Gray Code

Moderate
25m average time
70% success
0/80
Asked in companies
IBMQuikrIBM

Given a number ‘grayNumber’. Find the gray code sequence.

Conditions for a gray code sequence :

1. Gray code sequence contains numbers from 0 to 2^'grayNumber'-1 in bit/binary form.
2. Two consecutive gray code sequence numbers only differ by 1 bit.
3. Gray code sequence must start with 0.

Example :

Given 'grayNumber' : 2.

alt text

As depicted from above image, the gray code sequence is 0,1,3,2.

Note :

1. The output sequence must contain the decimal representation of numbers instead of the binary form.
2. There can be multiple answers print anyone.
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

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
1784 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by IBM
2296 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by IBM
886 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