注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本帖最后由 匿名 于 2022-4-17 23:47 编辑
超市请的karat 代打
开始简单自我介绍
然后问了几个基本的问题
1. 如果一个app导致ram异常升高 cpu不变 可能是什么原因 如何解决
2. 如何解决app thread exhaustion
后面还有几题 忘记了
然后是算法 后来查了一下 看来是老熟人
Suppose we have an unsorted log file of access to web resources. Each log entry consists of an access time, the ID of the user making the access, and the resource ID.
The access time is represented as seconds since 00:00:00, and all times are assumed to be on the same day.
Example:
logs1 = [
["58523", "user_1", "resource_1"],
["62314", t;],
["1201", "user_1", "resource_3"],
["1202", "user_1", "resource_3"]
]
Example 3:
logs3 = [
["300", "user_10", "resource_5"]
]
两个问题
1. 打印出所有用户第一次登入和最后一次登入的时间
2. 以五分钟为一个窗口 找到在某个五分钟窗口内登入次数最多的设备和对应的次数
|