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

SDE - 1

Twilio
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
My personal journey is very challenging coming from a middle-class family I need not have the access to a computer for a long time. I came to know about computer when i joined my college but from there i never look back again.
Application story
This is an on-campus placement opportunity for me the company visited my campus for the placement .
Why selected/rejected for the role?
This was a great experience for me i was able to perform well, and i am satisfied with the effort i have put forward.
Preparation
Duration: 4 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Prepare your resume well. 
Tip 2 : Deploy your projects so that the interviewer can view it. Also provide a hyperlink on your resume.
Tip 3 : Be thorough with Data Structures and Algorithms. Also prepare well topics such as OS,DBMS.:

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

Tip 1 : Deploy your projects so that the interviewer can view it. Also, provide a hyperlink on your resume
Tip 2 : It's not important to have fancy projects. Only mention those on which you're confident.

Interview rounds

01
Round
Easy
Video Call
Duration60 mins
Interview date5 Jan 2023
Coding problem2

1. Maximum Subarray Sum

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

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

I used Kadane algorithm here to find subarray with maximum sum. It is a standard question for interview.

Try solving now

2. DFS Traversal

Moderate
35m average time
65% success
0/80
Asked in companies
SamsungIntuitGoldman Sachs

Given an undirected and disconnected graph G(V, E), containing 'V' vertices and 'E' edges, the information about edges is given using 'GRAPH' matrix, where i-th edge is between GRAPH[i][0] and GRAPH[i][1]. print its DFS traversal.

V is the number of vertices present in graph G and vertices are numbered from 0 to V-1. 

E is the number of edges present in graph G.
Note :
The Graph may not be connected i.e there may exist multiple components in a graph.
Problem approach

Use simple recursion approach to solve this

Try solving now
02
Round
Medium
Video Call
Duration60 mins
Interview date5 Jan 2023
Coding problem2

1. Invert a Binary Tree

Moderate
45m average time
55% success
0/80
Asked in companies
AppleSamsungFreshworks

You are provided with a Binary Tree and one of its leaf nodes. You have to invert this binary tree. Inversion must be done by following all the below guidelines:

• The given leaf node becomes the root after the inversion.

• For a node (say, ‘x’) 
    ○ If there exists the left child that is not yet taken then this child must become the right child of ‘x’.
    ○ If the left child is already taken then the right child is still on the right side of ‘x’.

• The parent of ‘x’ must be the left child of ‘x’.

For Example:

Example-img01
Example-img02

Consider the above binary tree (image- before inversion), if the given leaf node is ‘1’ then the binary tree after inversion becomes exactly the same as given in the image representing after inversion.

Note:

The given binary tree will only have distinct values of nodes.

Problem approach

You are provided with a Binary Tree and one of its leaf nodes.

Try solving now

2. Edit Distance

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

You are given two strings 'S' and 'T' of lengths 'N' and 'M' respectively. Find the "Edit Distance" between the strings.

Edit Distance of two strings is the minimum number of steps required to make one string equal to the other. In order to do so, you can perform the following three operations:

1. Delete a character
2. Replace a character with another one
3. Insert a character
Note:
Strings don't contain spaces in between.
Problem approach

Firstly I gave the interviewer, a recursive solution then he asked me to reduce complexity as it was exponential of recursive solution so I gave him a top-down DP solution.

Try solving now
03
Round
Easy
HR Round
Duration20 mins
Interview date5 Jan 2023
Coding problem1

1. Basic HR Questions

How long would you expect to work for us if hired?
Are not you overqualified for this position?
Describe your ideal company, location and job.

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
2 rounds | 5 problems
Interviewed by Twilio
795 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Twilio
813 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Twilio
647 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Twilio
484 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes