Giter Club home page Giter Club logo

js-problems's Introduction

Problem Solving

This repo contains a number of problems for which you are required to provide:

  1. An English explanation of the possible solution
  2. A pseudo code version of the solution
  3. And finally, the javascript version of the solution

Learning Objectives

  • To encourage you to think clearly about the problems you encounter
  • Enable you to turn plain English solutions into their Javascript equivalents

Introduction

A general approach to problem solving is as follows:

  1. Understand the problem
  2. Draw experience from related problems to plan an approach to this problem
  3. Try to solve the problem, based on 1. and 2.
  4. Check your solution. Is it correct?

This repository requires you to use that approach.

Exercise

This repo contains a number of problems. To solve the problems, do the following:

  1. Fork this repository and clone the fork to your machine
  2. The problems are described in the ./src directory. They are nominally categorised as easy, medium, and hard.
    1. For each problem:
      1. Read a description of the problem in the file problem.md
      2. Add a plain English description of the proposed solution in the file plain.md
      3. Add a pseudo code version of the plain English solution in the file pseudo.md
      4. Only after you've completed steps 2. and 3. should you attempt to code up a javascript solution in the file solution.js
        1. Your javascript should be in the form of a function that returns your solution
      5. Is your solution correct? If you're able, try checking your answer with different inputs

Hint: An example of a completed exercise is in the directory src/easy/scores.

js-problems's People

Contributors

glowkeeper 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.