Workday VO 面试真题解析:National Park – BPC(图查询与系统建模)

16次阅读
没有评论

National Park – BPC

Definition:

We are building a system that can track the campgrounds at a National Park as well as the attractions available for guests.

Exercise 1:

For a National Park, we want to know:

  • What are the campsites at the park?
  • How many rangers work at the park?
  • What’s the phone number of Ranger Smith?

这道 Workday VO 题目本质上是在考察如何把“国家公园”建模成可查询的数据结构,并支持按类别检索信息。题干要求我们维护营地、景点和 ranger 等对象,然后回答诸如“有哪些 campsites”“有多少 rangers”“Ranger Smith 的电话号码是多少”这类查询,适合用面向对象设计或哈希映射来组织数据,再结合遍历与筛选完成检索。

正文完
 0