InterviewLegend

Messages and Phone Numbers

Alex Chen60 min readUpdated 197 real interview reports

Twilio's product is messages and phone numbers. Some of its coding problems use them directly. The algorithms are plain string work, but the hidden tests check every rule in the statement, edge cases included.

The four problems below follow Twilio's own rules for messages, numbers and addresses, and a layout problem from the senior assessment closes the set.

Each problem has one rule that breaks a first draft, like a count that grows a digit or a number that arrives with a leading plus sign. Find that rule in the statement and test it before you write the main loop.

TwilioPremium lesson · Coding round

The 4 Twilio problems are below.

  1. A Premium questionCoding · Medium · Frequently asked
  2. A Premium questionCoding · Medium · Frequently asked
  3. A Premium questionCoding · Easy

+ 1 more in this lesson

Each with hints, the follow-up and a tested solution.

Get the Twilio questions

$49 a year · all 100 companies · cancel anytime

From 197 Twilio reports, forum threads behind logins and write-ups in Chinese.

Had your Twilio interview?Tell us what they asked. Reviewed before it goes in, never with your name.
Twilio interview guide

Know what Twilio asks before you walk in.

31 coding · 3 system design · 18 behavioral questions

Get Premium$49 a year · Cancel anytime
Or start freeNo card.

Get their questions first.

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.