Twitter/X Software Engineer Interview Questions
72+ questions from real Twitter/X Software Engineer interviews, reported by candidates.
Round Types
Top Topics
Questions
Twitter | Online Coding Round | Word Search
YOE: ~6.5 years Location: Bangalore After clearing Telephonic screening round, I had HM call. Post that online coding round was scheduled. I was asked to solve #LC word search. I was able...
Twitter | Phone screen | k login requests
Got this question in a phone screen. I could only come up with a O(2n) soln. Was my time complexity + soln correct? I didn\'t get any feedback at the...
Twitter | Stage (Phone Screen )
//\xA0Write\xA0a\xA0method\xA0to\xA0find\xA0out\xA0how\xA0much\xA0total\xA0time\xA0was\xA0spent\xA0in\xA0each\xA0space,\xA0 //\xA0over\xA0all\xA0users. //\xA0action,\xA0space,\xA0user,\xA0timestamp static\xA0String\xA0[][]\xA0requests\xA0=\xA0{ \xA0\xA0\xA0\xA0{"create",\xA0"xyz",\xA0"1",\xA0"1619916081"},\xA0//\xA0Sat\xA0May\xA001\xA02021\xA017:41:21\xA0GMT-0700\xA0 \xA0\xA0\xA0\xA0{"join",\xA0"xyz",\xA0"2",\xA0"1619916681"},\xA0//\xA0Sat\xA0May\xA001\xA02021\xA017:51:21\xA0GMT-0700 \xA0\xA0\xA0\xA0{"create",\xA0"abc",\xA0"3",\xA0"1619916881"},\xA0//12:01 \xA0\xA0\xA0\xA0{"leave",\xA0"xyz",\xA0"2",\xA0"1619920281"}, \xA0\xA0\xA0\xA0{"join",\xA0"abc",\xA0"4",\xA0"1619920881"}, \xA0\xA0\xA0\xA0{"create",\xA0"ghi",\xA0"5",\xA0"1619923999"}, \xA0\xA0\xA0\xA0{"leave",\xA0"xyz",\xA0"1",\xA0"1619923881"}, \xA0\xA0\xA0\xA0{"leave",\xA0"abc",\xA0"3",\xA0"1619927481"},\xA0//12:07\xA0time\xA0spent\xA0=\xA06\xA0minutes \xA0\xA0\xA0\xA0{"leave",\xA0"abc",\xA0"4",\xA0"1619927481"}, \xA0\xA0\xA0\xA0{"leave",\xA0"ghi",\xA0"5",\xA0"1619958001"} }; For Userid = 3, total time spent is 12:07 -12:01=6 mins
Should you apply for Senior SWE with no system design experience?
Hey guys. Russian dev looking to jump ship here. I have 9 YOE with a navy defence contractor company. I've been approached by some European recruiters and all of them are inviting to interviews for a
Twitter Software Engineer Interview Experience
Application Process Applied off-campus on careers page. #### Interview experience Cannot disclose exact questions as signed an NDA. [Telephone screen] This round was data structures and algorithms based....
Twitter | OA | Jan2020
All questions were similar to some of the posts tagged as Twitter OA in Discuss. Time: 1hr, Questions: 4 1. https://leetcode.com/discuss/interview-question/374440/Twitter-or-OA-2019-or-Weird-Faculty 2. https://leetcode.com/discuss/interview-question/376581/Twitter-or-OA-2019-or-Unique-Twitter-User-Id-Set 3. https://leetcode.com/discuss/interview-question/406652/Twitter-or-OA-2019-or-Anagram-Difference 4. Buying Show Tickets There are n...
Twitter Phone interview question
This question was not asked to me but I saw it in a different site. It has been asked sevral times from 2019-2020 in phone interview. We want to measure a...
Twitter phone screen
Question I was asked was: Given two maps in assertThat(map1, map2), write a function that can help the user with the comparison. The signature they gave was: <K,V> ??? diff (Map<K,V> left,...
Twitter | Coding Round | Closest Numbers
Solution 4 def closestNumbers(A): A.sort() D=[A[i+1] - A[i] for i in range(len(A)-1)] target=min(D) X=[[A[i],A[i+1]]for i,d in enumerate(D) if d==target] for i in range(0,len(X)): print(X[i][0], X[i][1])
Twitter | Coding Round | Array Game
Solution 3 def countMoves(numbers): # Write your code here numbers.sort(reverse=True) if len(numbers)==1: return 0 res=0 for i in range(1,len(numbers)): res+=-(numbers[i]-numbers[i-1]) *i return res
There were 4 questions and time given was 75 mins and on HackerRank Platform. q1 : Birthday Card collection : Given nums and threshold d. Find the smallest set of numbers...
There were 4 questions to be completed in 75 minutes. 1. https://leetcode.com/discuss/interview-question/989768/amazon-oa-2020-transaction-logs 2. https://leetcode.com/problems/maximal-square/ 3. https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/ 4. String Reduction : Given a string , reduce string such that all of its substrings are...
Twitter OA Early Career 2022
How many sentences? \tI created a custom hash string for each word as in the form of; [occurence count][character][occurence count][character]... For instance hash string for the word eat would be...
Twitter | SSE | Best twitterati
Question asked: Implement a feature active_twitterati which simulates the following operations. active_twitterati has two functions: store - Pushes a twitterati_id on a data structure whenever a user tweets. find_best_twitterati - Removes and returns...
Location: Seattle, WA. Applied online and got a ping from recruiter that one of the hiring manager is interested. Telephonic Round 1: This was with Hiring Manager, kind of cultural fit...
Twitter Phone Interview
Twitter Phone Interview - Duration: 1 hr Platform: Hackerrank - codepair 1. Write a collection of data structure that is fast (should run in o(1) time amortized) for each of the follwoing operation...
Twitter | Phone screen | Linear probing hash table
Build a linear probing hash table. Got a rejection for this. This is what I had built and it seemed to work for a fix bucket size. Is there anything...
You are given an array Arr of size N and two integers S and K. Arr has a feature that its elements absolute value dose not exceed K. You want...
Twitter | Phone Screen | Number of continuous increasing count in array
Input: array of int output: array of int which is a number of continuous increasing count For example input: [100, 10, 50, 60, 20, 90, 110] output: [1, 1, 2, 3, 1, 5,...
I had an online test, and a tech/behavioral phone screen. They got back to me to book a 'design phone screen to discuss from a high level the design of the projects I've worked on'. This is tomorrow.
See All 72 Twitter/X Software Engineer Questions
Full question text, answer context, and frequency data for subscribers.
Get Access