Sorted Union

From the FreeCodeCamp intermediate algorithms here: Write a function that takes two or more arrays and returns a new array of unique values in the order of the original provided arrays. In other words, all values present from all arrays should be included in their original order, but with no duplicates in the final array.Continue reading “Sorted Union”

Missing Letters

From the FreeCodeCamp intermediate algorithms here: Find the missing letter in the passed letter range and return it. If all letters are present in a range, return undefined. FreeCodeCamp – Missing Letters There’s not too much to say about this one. One thing which I can note is that JavaScript, as a language, is extremelyContinue reading “Missing Letters”

DNA Pairing

From the FreeCodeCamp intermediate algorithms here: The DNA strand is missing the pairing element. Take each character, get its pair, and return the results as a 2d array. Base pairs are a pair of AT and CG. Match the missing element to the provided character. Return the provided character as the first element in each array.Continue reading “DNA Pairing”

Create your website at WordPress.com
Get started