Giter Club home page Giter Club logo

logic-brainteaser's Introduction

Be smart or be a developer

This project shows logic brainteasers and how to solve them with brute force. It's intended use is not to avoid thinking about brainteasers---they are still fun---but to have little programming exercises to improve one's skills. In class rooms, there are way too many exercises like 'remove the n-th element from the list and randomize it'. Although, they help students to practice programming, they are not motivated by it. As a passionate developer, this is the key to becoming a better developer. Fulfilling a task with a programm is like solving a puzzle. Obviously, you enjoy a puzzle much better if you like the motive.

Brainteaser

The following brainteasers are already implemented in Jupyter Notebooks. This allows for better understanding each step in the process.

Probability of picking a red ball

This brinteaser is a about estimating the---somewhat counterintuitive---probability of picking a red ball from a bowl after already having picked a red ball without returning it. One constraint is that of the three balls in the bowl, one is red, one is blue and one is either red or blue (with a 50% probability). This is similar to the Monty Hall problem where the participant has incomplete information.

Finding the heavy ball on a scale

This brainteaser is a 'classic' brainteaser where you have a scale and three or nine balls. One ball is heavier and you need to find it by using the scale only once (twice).

Usage

Feel free to use the notebooks for education or any other purpos. Keep in mind that there are often many possible solutions and these solutions can be further improved.

logic-brainteaser's People

Contributors

nicolaierbs avatar

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.