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

SDE - 1

Twilio
upvote
share-icon
2 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
After completing a degree in Computer Science, I gained experience through internships, personal projects, and networking. I prepared for technical interviews, emphasizing relevant skills and technologies, and successfully joined Twilio as an SDE1, contributing to impactful projects.
Application story
I developed a web app for our university's computer science club, demonstrating proficiency in web technologies, teamwork, and problem-solving. Eager to apply these skills as an SDE1, I am excited about contributing to innovative software solutions.
Why selected/rejected for the role?
I found it challenging to explain complex concepts in a concise manner, which may have given the impression that I lacked clarity or depth in my understanding. This could have contributed to the decision not to select me for the role.
Preparation
Duration: 6 months
Topics: Data Structures and Algorithms, System Design, Object-Oriented Programming (OOP), Concepts Programming Languages, Web Technologies, Databases, Cloud Computing Testing and Debugging System Architecture and Scalability
Tip
Tip

Tip 1: Understand Twilio's products and APIs.
Tip 2: Brush up on web technologies.
Tip 3: Practice problem-solving and coding.

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

Tip 1: Tailor it to the job – Customize your resume to highlight relevant skills, experiences, and achievements that align with the specific job for which you are applying.

Tip 2: Keep it concise – Limit your resume to one or two pages, focusing on the most important and impactful information. Use bullet points and concise sentences to convey your accomplishments and responsibilities effectively.

Tip 3: Showcase quantifiable results – Emphasize your achievements and outcomes rather than merely listing job duties. Use specific numbers, percentages, or metrics to quantify the results of your work and demonstrate the impact you have made.

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 minutes
Interview date13 Oct 2021
Coding problem2

1. Hotel Floors

Easy
10m average time
90% success
0/40
Asked in companies
WalmartBarclaysInspirisys

You are the receptionist at a hotel which has 10 floors, numbered from 0 to 9 and each floor has 26 rooms named from ‘A’ to ‘Z’. Being a receptionist your task is to handle booking queries.

You get booking queries in the form of strings of size 3 where 1st character is ‘+’ means room is booked, or ‘-’ means room is freed. Second character represents the floor of the room i.e, ‘0’ to ‘9’. Third character represents the room name i.e, ‘A’ to ‘Z’.

On booking of each room you collect 1 coin from the customer. After the end of all the booking queries you have to count the number of coins you collected.

You may assume that the list describes a correct sequence of bookings in chronological order i.e., only free rooms can be booked, and only booked rooms can be freed.

For Example:-

Consider booking queries to be ["+1A", "+3E", "-1A", "+4F", "+1A", "-3E"]
+1A: Room A on the 1st floor is booked and you collected 1 coin.
+3E: Room E on the 3rd floor is booked and you collected 1 coin.
-1A: Room A on the 1st floor is freed.
+4F: Room F on the 4th floor is booked and you collected 1 coin.
+1A: Room A on the 1st floor is booked and you collected 1 coin.
-3E: Room E on the 3rd floor is freed.
So you collected 4 coins.
Problem approach

Set initial room occupancy: Assign a default value (e.g., 0) to all the elements in the matrix to indicate that the rooms are initially unoccupied.

Process the operations: Iterate through each given operation. Depending on the operation type (check-in, check-out, or occupancy status check), perform the following steps:

For check-in: If a guest checks in, update the corresponding room in the matrix to indicate occupancy (e.g., assign a value of 1).

For check-out: If a guest checks out, update the corresponding room in the matrix to indicate vacancy (e.g., assign a value of 0).

For occupancy status check: Retrieve the occupancy status of the specified room by accessing the corresponding element in the matrix.

Return or display the results: Depending on the problem requirements, return the occupancy status of a particular room or print the final state of the hotel matrix.

Try solving now

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

Reverse the input strings for easier digit-wise multiplication.

Perform digit-wise multiplication, keeping track of carry values.

Adjust the digits to handle carry values.

Remove leading zeros from the result.

Reverse the result to obtain the final answer.

Return or output the final result.

Try solving now
02
Round
Easy
Face to Face
Duration80 minutes
Interview date29 Oct 2021
Coding problem3

1. Regions cut by slashes

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

This time our favorite Ninja wants to buy a house. But they are unable to count the number of rooms in the house. So they need your help to count the number of rooms.

Note:
A house is represented by a matrix where “\” and “/” represent a wall and blank space is empty space. We will consider two rooms different if we will be unable to reach another room.

Your task is to return the number of rooms. For a better explanation, see the example.

Example:
Input: 
[
  “ /”
  “/\”
]

Output: 3

Explanation: 2 X 2 house is shown below:

Try solving now

2. Tiling Problem

Hard
45m average time
0/120
Asked in companies
OptumOlaAdobe

You have been given a board where there are '2' rows and 'N' columns. You have an infinite supply of 2x1 tiles, and you can place a tile in the following ways:

1. Horizontally as 1x2 tile
2. Vertically as 2x1 tile

Count the number of ways to tile the given board using the available tiles.

Note :
The number of ways might be large so output your answer modulo 10^9 + 7.

Here an example of tile and board for 'N' = 4 :

Tiling Example

Problem approach

Using Dynamic Programming.

Try solving now

3. Puzzle

There are 100 closed doors. A cage holding 100 monkeys is placed nearby. Every monkey that visits a door either opens a closed door or closes an open door. The first monkey that is let out of the cage visits and opens all one hundred doors. The second monkey that is released visits doors 2, 4, 6, 8, 10, and so on. The third monkey released visits doors 3, 6, 9, 12, 15, and so on.

After all the monkeys from the cage are released and have opened or closed at least one door, how many doors are left open? (Learn)

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
3 rounds | 5 problems
Interviewed by Twilio
1185 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
648 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