Skip to content

代码题 #1

@licoded

Description

@licoded

推荐资源

算法

手撕

  • Promise.all/allSettled
  • 加法AsyncAdd API,计算[1,2,3,4,5]数字和
    • 要求尽可能减少 API 调用次数
    • 要加缓存,缓存的key-pair要排序小的放前面,避免2+1不能命中1+2的缓存
  • 发布订阅模式 写个类,实现on/emit/once/off方法

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions