这是一个前端面试盒子,侧重于 JS 代码,里面整理了一些有用的前端代码,包括剑指 offer 的 JS 版、JS 设计模式、常见排序查找算法、《深入浅出 Nodejs》、《JS 高级程序设计》中的代码,希望对大家春招、秋招求职有帮助。
此外,欢迎大家给这个仓库提 PR和issue,增加问题、解答,亦或是其他有关 JS 的代码。
To Do List:
- JS 设计模式
- 剑指 offer
- 常见 JS 方法实现
- 《深入浅出 Nodejs》
- Leetcode
- 《JS 高级程序设计》
- 面试题目
这是一个前端面试盒子,侧重于JS代码,里面整理了一些有用的前端代码,包括剑指offer的JS版、JS设计模式、常见排序查找算法、《深入浅出Nodejs》、《JS高级程序设计》中的代码,希望大家春招、秋招求职有帮助。
Home Page: http://fe.ericwu.cn/
这是一个前端面试盒子,侧重于 JS 代码,里面整理了一些有用的前端代码,包括剑指 offer 的 JS 版、JS 设计模式、常见排序查找算法、《深入浅出 Nodejs》、《JS 高级程序设计》中的代码,希望对大家春招、秋招求职有帮助。
此外,欢迎大家给这个仓库提 PR和issue,增加问题、解答,亦或是其他有关 JS 的代码。
To Do List:
http://fe.ericwu.cn/algorithm/sword-to-offer/7.html
我看的这个链接里的解法,考虑数列第n项的时候,没有考虑最开始的两项是0和1,也就是n = 1,应该返回 0吧?n =1,返回1
[numbers[i], numbers[numbers[i]]] = [numbers[numbers[i]], numbers[i]];
会导致死循环,需要把 numbers[i] 缓存起来,同踩过坑
let temp = numbers[i];
[numbers[i], numbers[temp]] = [numbers[temp], numbers[i]];
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.