Giter Site home page Giter Site logo

algorithms's Introduction

Algorithms

This repository is created as a good start for contributing open source at Hacktoberfest 2019. It's mostly dedicated for beginners and first-timers this year, but anyone is welcome. Take a look at Issues and take one that fits you.

algorithms's People

Contributors

adminleocode avatar

Stargazers

Diego Serrano avatar

Watchers

James Cloos avatar Konrad Kotelczuk avatar

algorithms's Issues

Who doesn't have a pair?

The party is tonight. We've got a few hours left and I'm not sure that everybody is going to have somebody to talk to. People are paired by age. Here, take this list of ages of people who'll appear for sure. Please, if you find somebody without a pair, tell me how old they are so we can try to find somebody for them.

Example of usage # 1:

aloneAtParty([25, 19, 21, 25, 21]);

Expected output # 1:

> The person alone is 19 years old.

Example of usage # 2:

aloneAtParty([25, 19, 21, 25, 21, 19])

Expected output # 2:

> Everybody's got a pair.

Additional info:

There won't be more than 1 person without a pair.

How long until the alarm goes off?

Nobody wants to be late at work. I'm not that good at calculating the perfect time to go to sleep. I want your help with that. Define a function, which tells me, for how long I will have been sleeping since now.

Example of usage:

alarm('5:30');

Expected output/return value when run at 23 (11 PM):

> I will have been sleeping for 6 hours and 30 minutes.

Additional info:

We'll use 24-hour time format.

Median of medians

Write code in your favorite language that solves the median of the medians algorithm.

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.