GithubHelp home page GithubHelp logo

coding-challenge-6's Introduction

Zero To Master - Coding Challenge 6

Optional Javascript Exercises part of ZTM Course

Question 1

Clean the room function:

Given an input of [1, 2, 4, 591, 392, 391, 2, 5, 10, 2, 1, 1, 1, 20, 20]
make a function that organizes these into individual array that is ordered. 

For example answer(ArrayFromAbove) should return: 
[[1, 1, 1, 1], [2, 2, 2], 4, 5, 10, [20, 20], 391, 392, 591]. 

Bonus: Make it so it organizes strings differently 
from number types. i.e. [1, "2", "3", 2] should return [[1, 2], ["2", "3"]]

Question 2

Write a javascript function that takes an array of numbers and a target number

The function should find two different numbers in the array that, 
when added together, give the target number. 

For example: answer([1, 2, 3], 4)should return [1, 3]

Question 3

Write a function that converts HEX to RGB.

Then Make that function auto-detect the formats so that 

If you enter HEX color format it returns RGB and 
If you enter RGB color format it returns HEX.

coding-challenge-6's People

Contributors

brianmaxwell515 avatar

Watchers

 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.