注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
Hubspot OA,sessions and event, 之前在网上看到这题,自己写了一下,答案是错的 返回400,今天在leetcode上看到有人遇到同一题,我的思路与他一毛一样,他不知道哪错了,我也不知道哪错了,有没有大佬能给个正确答案?谢过!
原帖链接:,思路我就不再重述一遍了。
You're in charge of implementing a new analytics "sessions" view. You're given a set of data that consists of individual web page visits, along with a visitorId which is generated by a tracking cookie that uniquely identifies each visitor. From this data we need to generate a list of sessions for each visitor.
You can get the raw event data from the dataset API at REDACTED
The data set looks like this:
"events": [
{
"url": "/pages/a-big-river",
"visitorId": "d1177368-2310-11e8-9e2a-9b860a0d9039",
"timestamp": 1512754583000
},
{
"url": "/pages/a-smnt the duration should be zero
Evaluation
When you’re done, this page will update with a form to upload your code. We’ll evaluate you based on three things:
First and foremost, if you complete the project within three hours.
Next, the time from when you click the start button below to the time you submit a correct solution.
Finally, the quality of code you submit. We’re looking for simplicity, clarity and readability over cleverness or flexbility.
We think you should be able to complete this project in a single sitting, so try to allocate a single block if you can
|