All company sheets
Twilio logo

Twilio DSA interview questions

50 problems to practise before your Twilio online test or coding round. Most widely asked first.

50
Questions
13
Easy
28
Medium
9
Hard

Commonly reported. Problems candidates often report from this company’s coding rounds. These are Astra’s own tags, not an official question list.

Twilio is hiring · 15 open roles on Astra right nowView roles

50 questions

  1. 1

    Reverse a Linked List Recursively

    EasyRecursionTagged at 7 companies
  2. 2

    Determine if a Number is a Palindrome Recursively

    EasyRecursionTagged at 7 companies
  3. 3

    Compute and Return the Square Root of x

    EasyBinary SearchTagged at 7 companies
  4. 4

    Count Negative Numbers in a Sorted Matrix

    EasyBinary SearchTagged at 7 companies
  5. 5

    Find the Majority Element in an Array (Boyer-Moore)

    EasyArrayTagged at 7 companies
  6. 6

    Find the Pivot Index (Equilibrium Point)

    EasyArrayTagged at 7 companies
  7. 7

    Search in Rotated Sorted Array

    MediumArrayTagged at 7 companies
  8. 8

    Read N Characters Given Read4

    MediumArrayTagged at 7 companies
  9. 9

    Generate Letter Combinations of a Phone Number

    MediumRecursionTagged at 7 companies
  10. 10

    Find Number of Unique Paths in a Grid

    MediumRecursionTagged at 7 companies
  11. 11

    Maximize Stolen Money from House Robber in a Binary Tree

    MediumRecursionTagged at 7 companies
  12. 12

    Find All Beautiful Arrangements of Numbers

    MediumRecursionTagged at 7 companies
  13. 13

    Find Longest Increasing Subsequence (O(n log n) Solution)

    MediumBinary SearchTagged at 7 companies
  14. 14

    Find Positive Integer Solution for a Given Equation

    MediumBinary SearchTagged at 7 companies
  15. 15

    Rotate a 2D Matrix Image by 90 Degrees In-Place

    MediumArrayTagged at 7 companies
  16. 16

    Determine if a Sudoku Board is Valid

    MediumArrayTagged at 7 companies
  17. 17

    Find All Non-overlapping Intervals (Minimum Erasures)

    MediumArrayTagged at 7 companies
  18. 18

    Redis Time-Series Database

    MediumBinary SearchTagged at 7 companies
  19. 19

    Grumpy Bookstore Owner

    MediumSliding WindowTagged at 7 companies
  20. 20

    Same Tree

    EasyTreeTagged at 6 companies
  21. 21

    Count Number of Recent Calls in a Ping Counter

    EasyStack and QueueTagged at 6 companies
  22. 22

    Count Nodes in a Circular Linked List

    EasyLinkedListTagged at 6 companies
  23. 23

    Design a Stack using a Doubly Linked List

    EasyLinkedListTagged at 6 companies
  24. 24

    Delete Duplicates from a Sorted Doubly Linked List

    EasyLinkedListTagged at 6 companies
  25. 25

    Check if Two N-ary Trees are Identical

    EasyTreeTagged at 6 companies
  26. 26

    Check if Two Strings are Valid Anagrams

    EasyStringTagged at 6 companies
  27. 27

    Kth Smallest Element in a BST

    MediumTreeTagged at 6 companies
  28. 28

    Evaluate Arithmetic Expression in Reverse Polish Notation

    MediumStack and QueueTagged at 6 companies
  29. 29

    Calculate Number of Car Fleets Approaching Destination

    MediumStack and QueueTagged at 6 companies
  30. 30

    Find the Maximum Width Ramp in an Array

    MediumStack and QueueTagged at 6 companies
  31. 31

    Add Two Numbers Represented as Linked Lists

    MediumLinkedListTagged at 6 companies
  32. 32

    Rotate a Linked List to the Right by K Places

    MediumLinkedListTagged at 6 companies
  33. 33

    Find Next Greater Node in Linked List

    MediumLinkedListTagged at 6 companies
  34. 34

    Split a Circular Linked List into Two Halves

    MediumLinkedListTagged at 6 companies
  35. 35

    Implement a Trie (Prefix Tree) - StartsWith

    MediumTreeTagged at 6 companies
  36. 36

    Find the Diameter of an N-ary Tree (Google/Facebook)

    MediumTreeTagged at 6 companies
  37. 37

    Implement String to Integer (atoi)

    MediumStringTagged at 6 companies
  38. 38

    Determine if Two Strings are 'Close' Strings

    MediumStringTagged at 6 companies
  39. 39

    Implement Regular Expression Matching with '.' and '*'

    HardRecursionTagged at 6 companies
  40. 40

    Split an Array to Minimize Largest Sum

    HardBinary SearchTagged at 6 companies
  41. 41

    Solve Russian Doll Envelopes (LIS)

    HardBinary SearchTagged at 6 companies
  42. 42

    Data Lake Capacity Calculator

    HardTwo PointersTagged at 6 companies
  43. 43

    Detect Cycle in Directed Graph

    MediumGraphTagged at 5 companies
  44. 44

    Rotting Oranges (BFS Multi-Source)

    MediumGraphTagged at 5 companies
  45. 45

    X Trending Topics Algorithm

    MediumHeapTagged at 5 companies
  46. 46

    Calculate Trapping Rain Water Between Histogram Bars

    HardStack and QueueTagged at 5 companies
  47. 47

    Check if a String is a Valid Number (Scientific Notation)

    HardStringTagged at 5 companies
  48. 48

    Interleaving String

    HardDPTagged at 4 companies
  49. 49

    Cherry Pickup II

    HardDPTagged at 4 companies
  50. 50

    Discord Active User Cache

    HardDesignTagged at 3 companies

More company sheets