offer快到碗里来,呜呜呜 level
获赞
26
粉丝
4
关注
4
看过 TA
32
中山大学
2020
前端工程师
IP属地:未知
暂未填写个人简介
私信
关注
2020-05-09 10:41
已编辑
中山大学 前端工程师
0 点赞 评论 收藏
分享
2020-05-07 23:22
已编辑
中山大学 前端工程师
拼多多2点开始,一个小时左右。 美团3点开始,一个小时左右,这会冲突吧.,需要调吗?
offer快到碗里来,呜呜呜:明天周六啥日子啊,我佛了,明天早上10点还有腾讯的面试,三个一起来,一起凉?
投递美团等公司10个岗位 >
0 点赞 评论 收藏
分享
2020-05-06 22:01
已编辑
中山大学 前端工程师
JS实现一个带并发限制的异步调度器Scheduler,保证同时运行的任务最多有两个。完善代码中Scheduler类,使得以下程序能正确输出 class Scheduler {  add(promiseCreator) { ... }  // ...} const timeout = (time) => new Promise(resolve => {  setTimeout(resolve, time)}) const scheduler = new Scheduler() const addTask = (time, order) => {  scheduler.add((...
喵哈哈:并发限制k版本,牛客咋不让贴代码了?? class Scheduler { constructor(limit) { this.queue = []; this.limit = limit; this.currentTaskCount = 0; } add(fn) { return new Promise((resolve, reject) => { this.queue.push([fn, resolve]); this.exc(); }) } exc() { if (this.currentTaskCount < this.limit && this.queue.length) { const [fn, resolve] = this.queue.shift(); this.currentTaskCount++; Promise.resolve(fn()).then((result) => { resolve(result); this.currentTaskCount--; this.exc(); }) } } }
投递网易有道等公司10个岗位 >
0 点赞 评论 收藏
分享
2020-04-25 14:54
已编辑
中山大学 前端工程师
累了
后端GG:我觉得可以调整一下状态,正常生活,每天安排四五个小时的学习时间,找工作是一场马拉松。
投递字节跳动等公司10个岗位 >
0 点赞 评论 收藏
分享
2020-04-06 17:26
中山大学 前端工程师
0 点赞 评论 收藏
分享
2020-04-06 17:24
中山大学 前端工程师
投递虾皮信息等公司10个岗位
0 点赞 评论 收藏
分享

创作者周榜

更多
关注他的用户也关注了:
牛客网
牛客企业服务