240 发简信
IP属地:北京
  • 求两个有序数组的第k大值

    问题:100个运动员站成两排,每排已经按从高到低顺序排好,教练想找出身高排40位的队员,请问最少需要几次比较?(限制每次只能两个队员比身高)分析...

  • Resize,w 360,h 240
    y combinator: 不引用自己也能实现递归?

    问题 递归函数,比如求阶乘:f = ->(n){ n==0? 1 : n*f[n-1] }这里右边引用了f,可以不引用自身实现递归么? show...

  • JS async/await

    async/await: 最简洁地写串行的异步操 我们知道JS是单线程的,IO操作都被设计为异步的(非阻塞的),对于异步操作我们必需要写call...

  • function closure: 理解函数闭包和它的实现原理

    参考:https://en.wikipedia.org/wiki/Closure_(computer_programming)#Implemen...

  • Resize,w 360,h 240
    和小于k的最长连续子串

    问题 已知一个长度为n的数组(允许负数), 和一个整数k, 求:和小于k的最长连续子串? 例如: k=184, A=[431, -15, 639...

  • 实现 JS promise

    https://promisesaplus.com/需求包括: 同一个promise允许被多次then/catch then/catch函数: ...

  • Live a life you love

    You want a life you will love. A friend's father got it right when he sa...

  • 美剧Billions

    最近刷神剧"Billions",主线是两位男主角,对冲基金公司创始人(白手起家并成为亿万富豪)Alex,和金融检察官(出生于上流阶层)Chuck...

  • 电影 Before We Go (剧透)

    "Before We Go"拍摄于超爱的"美国队长2冬日战士"之后,是一部美国队长(Chris Evans)自导自演的电影。这部片很真实,因为男...

个人介绍
Lameness may strike your leg, but not your resolve. Sickness may weaken your body, but not your determination—unless you let it. The only thing that can impede your will is your will itself.