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 problemsEasy 2
| # | Title | Difficulty | Also at | Chapter |
|---|---|---|---|---|
| 118 | Pascal's Trianglealso at:AdobeAirtelAmazon Also at 4 moreBloombergGoogleMetaMicrosoft | Easy | — | |
| 2073 | Time Needed to Buy Ticketsalso at:Google | Easy | — |
Medium 11
Hard 7
| # | Title | Difficulty | Also at | Chapter |
|---|---|---|---|---|
| 42 | Trapping Rain Wateralso at:AdobeAirbnbAmazon Also at 34 moreAtlassianBloombergByteDanceCitadelCrowdStrikeDocuSigneBayFlipkartGoldman SachsGoogleGrowwInMobiIntelIntuitLyftMetaMicrosoftMyntraNaviNVIDIAOpenAIPayPalPaytmPhonePeQualcommRakutenRobloxSAPSnowflakeSwiggyTeslaUrban CompanyWalmart Global TechZoho | Hard | Chapter | |
| 140 | Word Break IIalso at:SnapAmazonBloomberg Also at 5 moreDropboxeBayGoogleMicrosoftMongoDB | Hard | Chapter | |
| 149 | Max Points on a Linealso at:AmazonCiscoCitadel Also at 3 moreGoogleLinkedInMeesho | Hard | Chapter | |
| 218 | The Skyline Problemalso at:AdobeCitadelGoogle Also at 2 moreYelpZomato | Hard | Chapter | |
| 269 | Alien Dictionaryalso at:SnapAirbnbAmazon Also at 7 moreBloombergCitadelGoogleMetaUberVMwareZoom | Hard | Chapter | |
| 296 | Best Meeting Pointalso at:DoorDashLinkedIn | Hard | — | |
| 407 | Trapping Rain Water IIalso at:AmazonByteDanceFlipkart Also at 3 moreGoogleMicrosoftQualcomm | Hard | — |
Hash Table
9 problemsEasy 1
| # | Title | Difficulty | Also at | Chapter |
|---|---|---|---|---|
| 202 | Happy Numberalso at:AdobeAirbnbAmazon Also at 9 moreBloombergCiscoeBayGoogleMetaMicrosoftPayPalSnowflakeSwiggy | Easy | Chapter |
Medium 8
Database
6 problemsEasy 2
| # | Title | Difficulty | Also at | Chapter |
|---|---|---|---|---|
| 586 | Customer Placing the Largest Number of Ordersalso at:GoogleMicrosoft | Easy | — | |
| 1683 | Invalid Tweetsalso at:Google | Easy | — |
Medium 4
| # | Title | Difficulty | Also at | Chapter |
|---|---|---|---|---|
| 580 | Count Student Number in Departments | Medium | — | |
| 585 | Investments in 2016also at:GoogleMeta | Medium | — | |
| 608 | Tree Node | Medium | — | |
| 1459 | Rectangles Area | Medium | — |
String
6 problemsEasy 1
Medium 3
| # | Title | Difficulty | Also at | Chapter |
|---|---|---|---|---|
| 468 | Validate IP Addressalso at:Google | Medium | — | |
| 831 | Masking Personal Information | Medium | — | |
| 1910 | Remove All Occurrences of a Substringalso at:Arista Networks | Medium | — |
Hard 2
| # | Title | Difficulty | Also at | Chapter |
|---|---|---|---|---|
| 10 | Regular Expression Matchingalso at:AdobeAirbnbAmazon Also at 11 moreAppleBloombergByteDanceCitadeleBayGoogleLyftMetaMicrosoftPhonePeZoho | Hard | — | |
| 44 | Wildcard Matchingalso at:SnapAdobeAmazon Also at 8 moreBloombergByteDanceGoogleInMobiInstacartMicrosoftTwo SigmaZoho | Hard | — |
Linked List
3 problemsEasy 1
| # | Title | Difficulty | Also at | Chapter |
|---|---|---|---|---|
| 206 | Reverse Linked List★ also at:LINESnapSpotify Also at 19 moreAdobeAmazonAppleBloombergByteDanceCiscoeBayGoogleGrowwJioLinkedInMetaMicrosoftPaytmQualcommSAPTeslaVMwareYelp | Easy | Chapter |
Hard 2
| # | Title | Difficulty | Also at | Chapter |
|---|---|---|---|---|
| 23 | Merge k Sorted Lists★ also at:AdobeAirbnbAmazon Also at 25 moreAppleBloombergByteDanceCiscoCitadelCloudflareDeliverooDocuSignDoorDasheBayFlipkartGoogleLyftMetaMicrosoftMongoDBNianticNVIDIANykaaOlaPalantirQualcommRipplingTwo SigmaVMware | Hard | Chapter | |
| 1206 | Design Skiplistalso at:eBay | Hard | Chapter |
Misc
6 problemsEasy 1
| # | Title | Difficulty | Also at | Chapter |
|---|---|---|---|---|
| 868 | Binary Gapalso at:AmazoneBayGoogle Also at 1 moreMicrosoft | Easy | Chapter |
Medium 4
| # | Title | Difficulty | Also at | Chapter |
|---|---|---|---|---|
| 43 | Multiply Stringsalso at:PinterestAmazonCleartrip Also at 3 moreGoogleTwo SigmaZoho | Medium | — | |
| 161 | One Edit Distancealso at:SnapStripe | Medium | Chapter | |
| 235 | Lowest Common Ancestor of a Binary Search Treealso at:AdobeAmazonGoogle Also at 1 moreMicrosoft | Medium | Chapter | |
| 341 | Flatten Nested List Iteratoralso at:AmazonAppleeBay Also at 6 moreLyftNetflixOpenAISplunkTeslaVMware | Medium | — |
Hard 1
| # | Title | Difficulty | Also at | Chapter |
|---|---|---|---|---|
| 60 | Permutation Sequencealso at:AmazonGoogle | Hard | — |
No problems match those filters
Toggle a difficulty back on or clear the search.