Git Product home page Git Product logo

leetcode's People

Contributors

molunerfinn avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

flydeemon

leetcode's Issues

Leetcode js 全局函数问题

感谢蛋哥分享此仓库,学习到很多!有几个问题想咨询一下:

最近发现 https://leetcode.com/problems/recover-binary-search-tree/你的代码也无法 AC,我也是调试了半天才发现 js 把函数写成全局变量的话貌似会被 Leetcode 提前调用(我改了函数名、变量名也没有有用)?相关的讨论

最终通过把所有函数、全局变量定义在 recoverTree 内部解决了,代码。但是却发现你的这个 110 的代码有全局的函数也是可以 AC 的。

还有一个问题就是,我发现 js 的输入特别麻烦,例子,之前在刷 Codeforces 和 PAT 的时候发现根本难以正确地读取输入(所以打算做做 LeetCode 提升一下 js 算法哈哈),你可有什么建议呢?

十分感谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.