Taro Logo

Frontend Engineer Interview Experience - Hong Kong

March 1, 2023
Positive ExperienceNo Offer

Process

First round - 2 coding test - LeetCode questions Second round - presentation and questions about your working experience and project that you have done in technique and tools that you have used

Questions

You are given a 0-indexed 2D matrix grid of size n x n, where (r, c) represents:

  • A cell containing a thief if grid[r][c] = 1
  • An empty cell if grid[r][c] = 0

You are initially positioned at cell (0, 0). In one move, you can move to any adjacent cell in the grid, including cells containing thieves.

The safeness factor of a path on the grid is defined as the minimum Manhattan distance from any cell in the path to any thief in the grid.

Return the maximum safeness factor of all paths leading to cell (n - 1, n - 1).

An adjacent cell of cell (r, c), is one of the cells (r, c + 1), (r, c - 1), (r + 1, c) and (r - 1, c) if it exists.

The Manhattan distance between two cells (a, b) and (x, y) is equal to |a - x| + |b - y|, where |val| denotes the absolute value of val.

Was this helpful?

Interview Statistics

The following metrics were computed from 1 interview experience for the Huawei Frontend Engineer role in Hong Kong.

Success Rate

0%
Pass Rate

Huawei's interview process for their Frontend Engineer roles in Hong Kong is extremely selective, failing the vast majority of engineers.

Experience Rating

Positive100%
Neutral0%
Negative0%

Candidates reported having very good feelings for Huawei's Frontend Engineer interview process in Hong Kong.