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

SDE - Intern

BYJUS
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 Months
Topics: DSA, OOPs, OS, DBMS, Your project, Your resume
Tip
Tip

Tip 1 : Strong your DSA part like doing 400 to 500 problems
Tip 2 : Strong your computer fundamentals like OS,OOPs,DBMS
Tip 3 : Build a good resume and include atleast two project and prepare for your project for the interview

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

Tip 1 : Include atleast two project
Tip 2 : Do not put false things on resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 Minutes
Interview date29 Aug 2022
Coding problem1

test started from 10.30 am

1. Auto Suggestion

Hard
60m average time
65% success
0/120
Asked in companies
AmazonMicrosoftGoldman Sachs

Bob had a hard time remembering the spelling of words. Alice, his best friend, decided to make a program that suggests words after every character Bob types.

Alice had an array of ‘N’ strings ‘S’ containing Bob’s most commonly used words. She decided to suggest at most three words after each character is typed. The typed word and the suggested word should have the same prefix. If there are more than 3 such words in the array, print the three lexicographically minimum words.

Problem approach

#include
using namespace std;
int levenDistance(string word1, string word2) {
int n1=word1.size();
int n2=word2.size();

if(n1==0 || n2==0) return n1?n1:n2;
vector> dp(n1+1,vector(n2+1,0));

for(int i=0;i<=n1;i++)
{
for(int j=0;j<=n2;j++)
{

if(i==0 && j==0) dp[i][j]=0;
if(i==0 && j>0) dp[i][j]=j;
if(j==0 && i>0) dp[i][j]=i;
}
}

for(int i=1;i<=n1;i++)
{
for(int j=1;j<=n2;j++)
{

if(word1[i-1]==word2[j-1]) dp[i][j]=dp[i-1][j-1];
else{
dp[i][j]=1+min(dp[i-1][j-1],min(dp[i-1][j],dp[i][j-1]));
}
}
}

return dp[n1][n2];

}

string solve(int N,vector words,string s)
{
int mini=1e9;
string ans;

for(int i=0;i { 
int dist=levenDistance(words[i],s);
// cout< if(dist { mini=dist;
ans=words[i];
}
else if(dist==mini){
if(words[i] }
}

return ans;

}

Try solving now
02
Round
Medium
Video Call
Duration45 Minutes
Interview date1 Sep 2022
Coding problem2

8.00 am to 8.45 am and the interviewer was very good

1. Fahrenheit to Celsius

Easy
0/40
Asked in company
BYJUS

Given three values - Start Fahrenheit Value (S), End Fahrenheit value (E) and Step Size (W), you need to convert all Fahrenheit values from Start to End at the gap of W, into their corresponding Celsius values and print the table.

Hint : Use type casting
Try solving now

2. Median of two sorted arrays

Hard
25m average time
65% success
0/120
Asked in companies
GrabAtlassianAmazon

Given two sorted arrays 'a' and 'b' of size 'n' and 'm' respectively.


Find the median of the two sorted arrays.


Median is defined as the middle value of a sorted list of numbers. In case the length of list is even, median is the average of the two middle elements.


The expected time complexity is O(min(logn, logm)), where 'n' and 'm' are the sizes of arrays 'a' and 'b', respectively, and the expected space complexity is O(1).


Example:
Input: 'a' = [2, 4, 6] and 'b' = [1, 3, 5]

Output: 3.5

Explanation: The array after merging 'a' and 'b' will be { 1, 2, 3, 4, 5, 6 }. Here two medians are 3 and 4. So the median will be the average of 3 and 4, which is 3.5.
Problem approach

by making partitions and using Binary Search

Try solving now
03
Round
Hard
Video Call
Duration50 Minutes
Interview date2 Sep 2022
Coding problem1

interview was not in good mood, he just asked my intro and not shaw any interest in my intro.then he asked me about LRU in OS and give me a problem which i did very easily then he asked me:
what is data structure
what is binary tree
comparison between array and binary
how it's structure
what is bst
how it's structure
what is heap
how it's structure
then he give me a coding problem find adjacent element having greater sum in a array
then he asked me about graph what are it's real life applications
then he asked me about dijkstra algorithm and asked me to explain it working 
then he jumped to the heap and asked me to explain its working how insertion and deletion works
then he asked me about arrays linkedlist and their comparison

1. Max Non Adjacent sum

Easy
19m average time
88% success
0/40
Asked in companies
WalmartBYJUS

You are given an array ‘ARR’ of integer elements. You have to find the maximum sum of the subset of elements in the array such that no two elements in the subset are adjacent to each other.

Note: A subset of array ‘ARR’ is a tuple that can be obtained from ‘ARR’ by removing some (possibly all) elements from it, without changing the order of the remaining elements.

EXAMPLE:
Input: 
'N' = 5
‘ARR’ = [1, 2, 3, 4, 5]

Output: 9

The optimal subset would be [1, 3, 5], in which no two elements are adjacent to each other and the sum of the subset is 9. We cannot make the sum greater than 9.
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 - Intern
3 rounds | 5 problems
Interviewed by BYJUS
619 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 8 problems
Interviewed by BYJUS
640 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by BYJUS
670 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by BYJUS
585 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15480 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15338 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10141 views
2 comments
0 upvotes