Code Monkey home page Code Monkey logo

kirasystemsdoublebooked's Introduction

Kira Systems Double Booked Programming Test

This repo is my solution for the Double Booked programming test.

Overview

This script performs the following:

  1. Generate 20 calendar events.
  2. Generate a unique sequence of all pairs of events.
  3. Filter the pairs of events for overlaps.
  4. Pretty print the result.

All of the functionality can be found under:

$PROJECT_ROOT/src/coding_test/core.clj

Installation

Clone this project:

git clone [email protected]:dpbriggs/KiraSystemsDoubleBooked.git

Install dependencies:

lein install

And run:

lein run

Examples

➜  coding_test git:(master) ✗ lein run
The following overlaps were found:
(({:start "2018-01-08-10", :end "2018-01-08-13"}
  {:start "2018-01-08-2", :end "2018-01-08-13"})
 ({:start "2018-01-01-9", :end "2018-01-01-11"}
  {:start "2018-01-01-1", :end "2018-01-01-10"})
 ({:start "2018-01-05-11", :end "2018-01-05-15"}
  {:start "2018-01-05-8", :end "2018-01-05-12"})
 ({:start "2018-01-10-5", :end "2018-01-10-12"}
  {:start "2018-01-10-2", :end "2018-01-10-12"})
 ({:start "2018-01-10-9", :end "2018-01-10-10"}
  {:start "2018-01-10-5", :end "2018-01-10-12"})
 ({:start "2018-01-10-9", :end "2018-01-10-10"}
  {:start "2018-01-10-2", :end "2018-01-10-12"})
 ({:start "2018-01-06-5", :end "2018-01-06-12"}
  {:start "2018-01-06-1", :end "2018-01-06-7"}))

kirasystemsdoublebooked's People

Contributors

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