kboeff / coding-challenge-6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coding-challenge-6

Answer to each question is on separate file: Q1.js, Q2.js and Q3.js Each solution could be tested by calling a function with some input. Default test cases are left in the code.

function names

Q1 -> organize()

Q2 -> additions()
Assuming negative numbers and duplicates are valid input.
Same numbers are counted as valid pair (eg. 2+2=4).
Order of appearance is irrelevant (eg. [1,3] or [3,1], only the first to appear is added to the answer).

Q3 -> toggleHex()
Detects the type of input hex/rgb and does the conversion. Yet to be released as npm package.

The function is published as npm package: npm-togglehex
The repo is here: github.com/kboeff/npm-togglehex

About


Languages

Language:JavaScript 100.0%