hushicai

Results 189 comments of hushicai

https://micro-frontends.org/

https://github.com/phodal/microfrontends https://microfrontends.cn [实施前端微服务化的六七种方式](https://zhuanlan.zhihu.com/p/39102712)

[微前端架构理念](https://www.yuque.com/ucf-web/book/pvxsv4)

[这可能是你见过最完善的微前端解决方案!](https://mp.weixin.qq.com/s/Fe-pfiyly7V892pmhdlbdA) https://github.com/umijs/qiankun

[Micro Frontends - How I Built An SPA With Angular And React?](https://ivanjov.com/micro-frontends-how-i-built-a-spa-with-angular-and-react/) https://github.com/IvanJov/react-angular-single-spa

[微前端的设计理念与实践初探](https://zhuanlan.zhihu.com/p/41879781)

![image](https://user-images.githubusercontent.com/1249423/53610441-d48ca180-3c05-11e9-8f1f-21180a50d524.png)

![image](https://user-images.githubusercontent.com/1249423/53610449-dc4c4600-3c05-11e9-8986-470eb3d6e895.png)

[An artificial example where MobX really shines and Redux is not really suited for it](https://hackernoon.com/an-artificial-example-where-mobx-really-shines-and-redux-is-not-really-suited-for-it-1a58313c0c70)

从寻找最小数出发,构建一棵胜者树,根节点即为最小数。 此时胜者树中已经包含了一个隐藏的信息:**最小数必然已经和第二小数比较过了**! 所以我们只需要从根节点出发,沿着最小数路径进行遍历,并用另一边子树根节点更新第二小数,最后达到叶子节点,即可得到第二小数。 ![image](https://user-images.githubusercontent.com/1249423/51458280-99d65480-1d8f-11e9-879b-c6af37ee266b.png) 寻找最小数需要 **n-1** 次比较。 遍历平衡二叉树需要 **logn - 1** 次比较。 总的时间复杂度 **(n - 1) + (logn - 1) = n + logn - 2**。