Code Monkey home page Code Monkey logo

javaget24's Introduction

Java的速算24

  • 两个eval函数一个是先3后1的情况,一个是四个数分两组再算两个结果的情况。

  • 重复情况没有判断,在结果中判断太复杂,应该是在遍历中判断,其中涉及到重复数字,算符顺序无关(比如+和*前后调换一样)的情况,我没想出结果(其实是因为懒),如果以后有时间,可以想一下。

  • 至于算符优先的情况,很好判断,第一个版本有,但是在后来的程序中我去掉了,直接用括号表示所有的优先级了,看上去也比较直观。

  • 写Java虽然比写Ruby难受,但是比写C++舒服多了。

javaget24's People

Contributors

mrhuxu avatar

Watchers

James Cloos avatar  avatar  avatar

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.