Social & Media

X (Twitter) interview questions

Grouped by topic, sorted Easy → Medium → Hard, then by LeetCode ID. Click a problem to open it on LeetCode; the chapter column links to the handbook chapter that covers it.

Problems
50
Easy
8
Medium
30
Hard
12
Mapped to chapter
20

Array

20 problems

Easy 2

#TitleDifficultyAlso atChapter
118Pascal's Trianglealso at:AdobeAirtelAmazon Also at 4 moreBloombergGoogleMetaMicrosoft Easy
2073Time Needed to Buy Ticketsalso at:Google Easy

Hash Table

9 problems

Easy 1

#TitleDifficultyAlso atChapter
202Happy Numberalso at:AdobeAirbnbAmazon Also at 9 moreBloombergCiscoeBayGoogleMetaMicrosoftPayPalSnowflakeSwiggy EasyChapter

Database

6 problems

Easy 2

#TitleDifficultyAlso atChapter
586Customer Placing the Largest Number of Ordersalso at:GoogleMicrosoft Easy
1683Invalid Tweetsalso at:Google Easy

Medium 4

#TitleDifficultyAlso atChapter
580Count Student Number in DepartmentsMedium
585Investments in 2016also at:GoogleMeta Medium
608Tree NodeMedium
1459Rectangles AreaMedium

String

6 problems

Medium 3

#TitleDifficultyAlso atChapter
468Validate IP Addressalso at:Google Medium
831Masking Personal InformationMedium
1910Remove All Occurrences of a Substringalso at:Arista Networks Medium

Linked List

3 problems

Misc

6 problems

Easy 1

#TitleDifficultyAlso atChapter
868Binary Gapalso at:AmazoneBayGoogle Also at 1 moreMicrosoft EasyChapter

Medium 4

#TitleDifficultyAlso atChapter
43Multiply Stringsalso at:PinterestAmazonCleartrip Also at 3 moreGoogleTwo SigmaZoho Medium
161One Edit Distancealso at:SnapStripe MediumChapter
235Lowest Common Ancestor of a Binary Search Treealso at:AdobeAmazonGoogle Also at 1 moreMicrosoft MediumChapter
341Flatten Nested List Iteratoralso at:AmazonAppleeBay Also at 6 moreLyftNetflixOpenAISplunkTeslaVMware Medium

Hard 1

#TitleDifficultyAlso atChapter
60Permutation Sequencealso at:AmazonGoogle Hard