查看: 965| 回复: 0
跳转到指定楼层
上一主题 下一主题
收起左侧

Palantir Online assessment02/2019

全局:

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
楼主海投Palantir, 惊奇收到online assessment.
求加点大米

Sick Travelers.1point3acres

A group of independent travelers are traveling around the world. Each day they travel to a new location as per their travel schedule. At the end of their travel schedule, they travel again using the same schedule from the beginning. Some of the travelers are diseased. If a healthy traveler is at the same location as a diseased traveler, they become sick.
Each traveler has a name, health condition (one of HEALTHY, SICK, or RECOVERING), and a travel schedule (order of locations they are visiting).
The objective is to trace the health of the travelers until they are all healthy. If all the travelers do not become healthy within a year (365 days), then stop tracing. The travelers transition through their sickness as follows:
HEALTHY: if exposed to a SICK/RECOVERING traveler, become SICK; otherwise stay HEALTHY. From 1point 3acres bbs
SICK: after one day of staying SICK, a traveler enters RECOVERING stage
RECOVERING: after one day of RECOVERING, a traveler becomes HEALTHY.

.

..
Sick Travelers

评分

参与人数 1大米 +3 收起 理由
沉风 + 3 很有用的信息!

查看全部评分


上一篇:请问国内找码工的工作通过哪些渠道比较好?
下一篇:海外找北美/加拿大工作机会
您需要登录后才可以回帖 登录 | 注册账号
  • ↑本版用于讨论归国工作,海归,归海等事宜。请勿发表政治言论
  • ☑短期回国,出行事宜,请去🔗生活经验版
  • ☑首次出国工作,请去🔗出国版
  • ☑留学相关讨论请去🔗留学申请大区

本版积分规则

>
快速回复 返回顶部 返回列表