Coder Social home page Coder Social logo

odd-occurrence's Introduction

odd-occurrence

This was a technical test I completed in early February 2020. The problem statement appears at the top of the file.

Dependencies

Only python 3.6 is required, and usually comes with most Linux distributions; if not, you can install dependencies with one of the following commands, depending on your package manager:

brew

brew install python3.6

apt

sudo apt-get update

sudo apt-get install python3.6

yum

yum install -y python3.6

Tests

There are three functions implemented in the odd_occurrences.py file. One can simply execute the file in the command line, then call the following functions, each with a list of integers as the only argument.

odd_occurrence_xor(<List[Int]>)

odd_occurrence_parity_set(<List[Int]>)

odd_occurrence_hashmap(<List[Int]>)

odd-occurrence's People

Contributors

jmblake avatar

Watchers

James Cloos 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.