In the fierce tech job market, TikTok’s recruitment draws much attention. As a globally famous short-video social platform, TikTok, with its innovative ideas and rapid growth, lures countless job seekers eager to join. The Online Assessment (OA) in its recruitment is crucial. It largely decides if you can move on to interviews and get nearer to your dream TikTok offer. Here, we’ll analyze the key aspects of TikTok OA in detail.

TikTok OA Question 1
Question: Given a two-dimensional array user_data
that contains the number of videos posted and the total number of likes for multiple users on TikTok. Each element in the array is in the form [user ID, number of videos, total number of likes]
. Please write a function to find the user ID with the highest average number of likes (total number of likes / number of videos, and if the number of videos is 0, the average number of likes is considered 0). If there are multiple users with the same highest average, return the smallest user ID. For example, if the input is user_data = [[1, 5, 100], [2, 3, 75], [3, 0, 0]]
, the output should be 2
.
TikTok OA Question 2
Question: TikTok’s video recommendation system needs to manage users’ interest tags. There is currently a string representing a user’s collection of interest tags, with different tags separated by commas (for example, "Food,Travel,Music"
). Please implement a function that takes such a tag string as input, removes duplicate tags, sorts the tags lexicographically, and then returns the new tag string. For example, if the input is "Music,Food,Travel,Music"
, the output should be "Food,Travel,Music"
.
TikTok OA Question 3
Question: In the TikTok live streaming scenario, there is a series of consecutive live streaming periods, each represented by a start time and an end time (integers in minutes), stored in a two-dimensional array live_streams
, where each element is [start time, end time]
. To arrange operation staff duties, calculate the maximum number of live streams happening simultaneously. For example, if the input is live_streams = [[10, 20], [15, 25], [20, 30]]
, the output should be 2
, because two streams overlap during minutes 15–20.
The secret to success
If you’re struggling while preparing for the TikTok OA or interviews at other major tech companies, don’t hesitate to reach out to ProgramHelp! We offer professional interview coaching services, including OA proxy testing, VO assistance, and full interview proxy services. Our goal is to help you ace those interviews and land your dream job offer!