Community

Discussion Board

Anonymous interview experiences, offers and career talk from frontend engineers.

djPtMRF0

Online Assessment for TikTok - FrontEnd

#tiktok
06100

OA lasts for a total of sixty minutes, with two questions.

  1. The first question is similar to How Many Sentences on leetcode.com.

Original question image: [link removed]

  1. Second question 53. Maximum Subarray Sum: Given an integer array nums, please find a continuous subarray with the largest sum (the subarray must contain at least one element) and return its maximum sum.

A subarray is a continuous part of an array.

Example 1:

Input: nums = [-2,1,-3,4,-1,2,1,-5,4]
Output: 6
Explanation: The sum of the continuous subarray [4,-1,2,1] is the largest, which is 6.

No replies yet

Markdown supported. 20 more characters needed.