离大谱,做着OA收到拒信,ZipRecruiter真牛。
OA一共四题,70分钟,用时29分钟写完
1.
2. 不记得了,实在是太简单了,别担心
3. 把R点丢进去就好了,不难,注意边界检查即可
You’ve been hired by a company to help simulate the spread of diseases in orchards to devise containment strategies.
Given a 2D grid orchard where each cell is represented by a character:
- "-" (empty),
- "T" (healthy tree),
- "R" (rotten tree).
Each day, rot spreads to adjacent cells (up, down, left, right) from any rotten tree. Healthy trees adjacent to rotten trees will[input]** 2D array orchard
A 2D grid of strings where each string represents the state of a cell in the orchard. The grid consists of characters representing:
- "T" (healthy tree),
- "R" (rotten tree),
- "-" (empty).
4. 这到题会卡时间,暴力Bucket能 280/300
全过也不难,lz肚子疼就提前交了,反正做着就被拒了
|