Code Monkey home page Code Monkey logo

paperless-engineering's Introduction

guide to the solution

  1. race.rb - original solution driver, just call it like ruby race.rb DISTANCE

  2. race-stat.rb - Monte Carlo race, call like ruby race-stat.rb, stop the competition by issuing INT signal (Ctrl+C on most sane systems). This version will run multiple races and collect simple statistics to prove Cat's superiority over Dog.

  3. race-sim.rb - solution using discrete event simulation - makes little sense in the simple case as formulated, but could be useful if the animals were more alive and get tired or agitated and their speed would vary from leap to leap. Call it like ruby race-sim.rb DISTANCE

  4. html/index.html - visualisation of the race using javascript and paper.js. The algorithm combines overshooting formula form (1) and a very simple animation system. Distance depends on browser width, race can be restarted by clicking anywhere or resizing the window.

paperless receipts engineering jobs

We're looking for passionate people who think outside the box. People who are passionate about solving real-life problems. Our goal is to encourage and empower to do their best, collaboratively and individually. We value personal and professional growth and reward attention to detail.

Here's how to apply:

  • Solve the challenge below.
  • Fork this repo with your solution
  • Include your resume if available in the repo
  • Mention any apps you've built or projects you've enjoyed working on
  • Should clippy be brought back?

The Challenge:

A trained cat and dog run a race, one hundred feet straight away and return. The dog leaps three feet at each bound and the cat but two, but then she makes three leaps to his two. Now, under those circumstances, who wins the race?

Input

The race distance eg 100, 200

Output

{Animal} wins by {distance}

Cat wins by 50 feet Dog wins by 10 feet or Draw

We will get back to you within a week of submitting your solution

paperless-engineering's People

Watchers

 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.