Phone interview.
The coding question is insanely difficult. It somehow related to convergence in math. As least I cannot solve it. I dont think I can solve it unless I have tried it before. within the interview.
It was nice. The first 7 minutes were introduction and then half hour for coding question. The interviewer was nice and gave the one hint I had needed to do the question. Overall good experience.
Interview questions [1]
Question 1
We have a m x n 2D grid initialized with three possible values:
-1 - An obstacle.
0 - An exit.
INF - An empty room. We use the value 2^31 - 1 = 2147483647 to represent INF as you may assume that the distance to an exit is less than 2147483647.
We want to fill each empty room with the distance to its nearest exit. If it is impossible to reach an exit, it should be filled with INF.
Example:
Given the 2D grid:
INF -1 0 INF
INF INF INF -1
INF -1 INF -1
0 -1 INF INF
We expect the output 2D grid as:
3 -1 0 1
2 2 1 -1
1 -1 2 -1
0 -1 3 4
I applied online. I interviewed at TikTok in Jan 2021
Interview
I was asked to solve a leetcode Hard coding problem with minimal hints given within 30 mins. Went straight into coding, not interested in your background or experience. The interviewer was nice but was not very proactive in the process.