Skip to content

zero-to-mastery/Coding_Challenge-6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 

Repository files navigation

Coding_Challenge-6

This coding challenge is all about logic and problem solving. Since Coding Challenge #4 was such a success we are doing something similar again. You will get a chance to work on javascript logic problems and also see how others have solved similar problems. This way you can learn from each other! At the end of the challenge, I will compile everyone's submitted answers onto github.(Ps, try to solve these yourself before going out on the internet and finding a copy paste solution)

Coding Challenge Submissions

The wonderful submissions from some of the Zero-to-Mastery students on the sixth coding challenge. I have included their Discord handle name so you can talk to them about their submissions!

FiratTale-firatto#3790 https://github.com/firattale/JavaScript/tree/master/ArrayFunctions/Andrew's%20Questions

Jaxxeh#7943 https://github.com/jaxxeh/challenge-6

Clayton#9381 https://github.com/claytonweller/codechallenge6

Hemant#2188 https://github.com/hemantbits/ztmcc6

Dirk005#4347 https://github.com/dirk005/Coding_Challenge-6

figat#4627 https://github.com/bartekfigat/Challenge-6.git

Wil Waller#5408 https://github.com/wilbertwaller/coding-challenge-6

SteveD#9549 https://github.com/SteveDuncan-ZTM/CodingChallenge-6

Samir#0141 https://github.com/SamirJouni/CodingChallenge6

kbo#9169 https://github.com/kboeff/coding-challenge-6

Lelouch#0621 https://github.com/ahsan8244/ZeroToMastery-Coding-Challenge-6

maboumra#4318 https://github.com/maboumra/WD2018_CC6

whitneyscott#0530 https://github.com/whitneyscott/Coding_Challenge-6

thomlom#4328 https://github.com/thomlom/coding-challenges/tree/master/coding-challenge-6

r4pt0s#5359 https://github.com/r4pt0s/coding_challenge_6_ztm

Craindrush#9084 https://github.com/Craindrush/CodingChallenge6

polzak#1155 https://github.com/polzak/challenge-6-web-app

ndobosz#6640 https://github.com/ndobosz/Coding_Challenge6

Julian#7835 https://github.com/Julesdowork/Coding-Challenge-6

LynnJ#1061 https://github.com/mlynnjacobs/codeChallenge6//

Speral#2416 http://github.com/yokutoro/Coding_Challenge6

The24thDS#6523 https://github.com/The24thDS/the24thds.github.io/tree/master/challenges/6

SabKop#4642 https://github.com/SabKop/Coding_challenge-6

shummi7#0430 https://github.com/shummi7/codingChallenge6

Puja#2455 https://github.com/pgakk/challenge6

Aravindh#9049 https://github.com/Aravindh-SNR/javascript-coding-challenge

Nass#3301 https://github.com/SNasser97/coding-challenge-6

wolf#7931 https://github.com/nilanshu96/ztm-js-logic-challenge

avvijeet#7932 https://github.com/avvijeet/ztm_coding-challenge_6

clara#1880 https://github.com/unhenei/Coding_Challenge-6_js_182

What is the Challenge?

Solve the below 3 javascript puzzles. The goal of this challenge is to practice our logic skills. Something that is useful not only in interviews when you get challenging problems, but also in your day to day work as a developer. First, start off by reading this article: https://medium.freecodecamp.org/how-to-think-like-a-programmer-lessons-in-problem-solving-d1d8bf1de7d2

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 autodect the formats so that if you enter HEX color format it returns RGB and if you enter RGB color format it returns HEX. Bonus: Release this tool as a npm package.

The Rules Are:

Use whatever tools you have as developers (google, friends, Discord, programming buddy etc...) but I will not be offering any help with this challenge. Just like a developer you must solve a problem and build something that will be challenging. Nobody will hold your hand during the job so we want to experience that by figuring it all out on your own!