注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本帖最后由 匿名 于 2026-2-2 22:48 编辑
分享一下最近刚写完的 Stripe OA 题目,投的是 Toronto 的 Summer Intern
平台是 Hackerrank,限时60分钟写完
题目用AI大概总结了一下:
You are asked to implement a function that simulates how a load balancer routes long-lived "websocket" connections to multiple Jupyter servers. The function receives a sequence of textual requests and must decide which target server each connection should go to, while maintaining internal state over time. The output is a log of successful connection routings.
The problem is dividedd SHUTDOWN.All active connections on that server are evicted.They must be re-routed one by one using the same routing rules as new connections.Successful re-routes are logged.The shut-down server immediately becomes available again after eviction.
希望对大家有帮助,可以的话麻烦各位顺手加个米,祝大家都能拿到 Offer! |