Skip to content

Activehubb/Coding_Challenge-6

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 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! Please Use the #coding-challenge channel to discuss and share your work. 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

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:

  1. You have until June 30th at 11:59pm EST to submit your solution file (using Github. If you don't know how to do that, check out the lecture in the Git + Github section of the course). You will have to submit the link to the #coding-challenge Discord group with the following message: -challenge github.com// . The bot will listen for the command in any channel its in and will reply with "thanks for your submission" if it succeeded.

  2. 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!

*** Please note: As with all my challenges there is zero benefit or monetary gain I recieve from it. This is just my way of thanking my students and making sure that you are able to continue gaining valuable knowledge outside of just my videos. It would mean a lot to me if you are able to rate my course...5 star reviews make my day :)

About

Logic and problem solving - 3 JavaScript Puzzles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published