Twitter计算机科学面试真题

职位分类
全部
数据相关
计算机科学
人工智能
产品经理
BQ
面试题
全部(44)
OOD(0)
Algorithm(8)
System Design(2)
高频题(0)
Math(0)
全部(44)
OOD(0)
Algorithm(8)
System Design(2)
高频题(0)
Math(0)
1.leetcode 438
2.Palindromic Substrings
3.Design Add and Search Words Data Structure
4.Merge Intervals
5.leetcode 1348
6.leetcode 1817
7.leetcode 528
8.leetcode 212
9.PathFinder
10.TreeTimeCalc
11.leetcode 152
12.K-diff Pairs in an Array
13.气球最大体积问题
14.Maximum Visibility
15.leetcode 652
16.leetcode 372
17.leetcode 435
18.leetcode 196
19.leetcode 1348
20.leetcode 532
21.leetcode 647
22.leetcode 211
23.Merge k Sorted Lists
24.design hashmap
25.Finding the Users Active Minutes
26.Tweet Counts Per Frequency
27.Random Pick with Weight
28.Word Search II
29.Maximum Product Subarray
30.Find All Anagrams in a String
31.Find Duplicate Subtrees
32.Non-overlapping Intervals
33.Super Pow
34.Finding the Users Active Minutes
35.Merge Two Sorted Lists
36.Tweet Counts Per Frequency
37.Text Justification Algorithm
38.Counting K-diff Pairs in an Array
39.Word Search II
40.Word Search in 2D Grid
41.Find log in given timestamp
42.Restocking the warehouse
43.Return usernames with a prefix
44."Merge Overlapping Intervals"
1. leetcode 438
leetcode 438
2. Palindromic Substrings
Given a string s, return the number of palindromic substrings in it.
A string is a palindrome when it reads the same backward as forward.
A substring is a contiguous sequence of characters within the string.
3. Design Add and Search Words Data Structure
Design a data structure that supports adding new words and finding if a string matches any previously added string.
Implement the WordDictionary class:
WordDictionary() Initializes the object.
void addWord(word) Adds word to the data structure, it can be matched later.
bool search(word) Returns true if there is any string in the data structure that matches word or false otherwise. word may contain dots '.' where dots can be matched with any letter.
4. Merge Intervals
Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input.
5. leetcode 1348
leetcode 1348