Union

Set of elements that are either in A or B! Union should not contain one element…


Seek and destroy

You will be provided with an initial array (the first argument in the destroyer…


Diff two arrays

Compare two arrays and return a new array with any items only found in one of…


Sum all numbers in a range

Pass an array of two numbers and return the sum of those two numbers plus the…


Chunky Monkey

Write a function that splits an array (first argument) into groups the length…


Char counts using reduce

const buildCharCounts = str => [...str].reduce((counts, ch) => {…


Mutations

Return true if the string in the first element of the array contains all of the…


Repeat a string

This algorithms is very simple, we take a variable and return that variable…


Map & reduce

Find Largest Numbers in Arrays Return an array consisting of the largest number…


Longest word length in a String

Find the Longest Word in a String Return the length of the longest word in the…