Yelp OA

用的是 HackerRank, 总共 30 分钟.

Modified version of Group Anagrams (available on Leetcode)

  • I have n Meals where a meal is comprised of a bunch of ingredients and has a name.
  • I needed to identify how many unique meals are on the menu where two meals are unique if they don’t have the exact same ingredients.
  • Return value was the number of unique meal.

Coding Assignment:
Find the distance from root Business to other businesses in an acyclic graph

  • I have been given a root Business which contains the name of the business and a hashmap<Business, Integer> where integer contains the distance from the parent.
  • I have been given a target distance.
  • If the business is within or equal to the target distance add it to the resulting list.
  • return the list.

楼主你这个是2020的new grad 的oa嘛?

对呀,我加下tag

请问楼主是内推的嘛?还是海投的?

海投的

谢谢…我刚刚也去申了…祝你通过!

我也是new grad,也报一下我的

这道题实际上几乎没啥难度,但是题目比较长,变量比较多而已。还有把代码写的清晰一点,自己也好debug。

OA时间比较紧,一道大题25分钟。建议第一次写的时候就尽量写的清楚一点,思路整理好了再写,争取不要出错,要不然最后只剩下几分钟在那debug真的很恐慌也很没效率的。

报一下题目

input:
event_type, occurance, biz_id

exp:
“reviews”, 7, 1
“reviews”, 3, 3
“ads”, 11, 1
“ads”, 7, 2
“ads”, 6, 3
“page_views”, 3, 1
“page_views”, 12, 2

output:
list of biz_ids that are active businesses.
An active business is the one who has more than (or equal to) 2 event_types with more than average occurances amoung all biz_ids

for example:
average for “review”, “ads”, “page_views” are 7+3/2 = 5, 11+7+6=8, 3+12/2=7.5
biz_id 1 has 7 “review” events > 5, 11"ads" events > 8, so biz_id 1 is an active business.

做完后收到店面

大佬你好~我还有个问题…投的是back end, Android 和full stack这三个之一的嘛? 我感觉有点糊涂@@不确定这三个是不是都可以投…

有限制吗?
我只投了 backend
但是你可以都投试试

好的!感谢你的回复~对了,你投了多久收到的OA啊…

差不多一周吧

这次真的没有问题啦!祝你店面顺利!!!

请问楼主这道题lc有原题吗?我看我的oa时间也是30min,但是这个题好像第一次见啊

没有原题