molunerfinn / leetcode Goto Github PK
View Code? Open in Web Editor NEWFor Practice
License: MIT License
For Practice
License: MIT License
感谢蛋哥分享此仓库,学习到很多!有几个问题想咨询一下:
最近发现 https://leetcode.com/problems/recover-binary-search-tree/ 用你的代码也无法 AC,我也是调试了半天才发现 js 把函数写成全局变量的话貌似会被 Leetcode 提前调用(我改了函数名、变量名也没有有用)?相关的讨论
最终通过把所有函数、全局变量定义在 recoverTree
内部解决了,代码。但是却发现你的这个 110 的代码有全局的函数也是可以 AC 的。
还有一个问题就是,我发现 js 的输入特别麻烦,例子,之前在刷 Codeforces 和 PAT 的时候发现根本难以正确地读取输入(所以打算做做 LeetCode 提升一下 js 算法哈哈),你可有什么建议呢?
十分感谢!
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.