Tag Archives: Bonfire

Bonfire 03: Reverse a String


Free Code Camp Bonefire challenges were the main reasons why I set up Coded Malarkey, as a way to make sure I truly and thoroughly understand the code I type. It thus only makes sense to start blogging with those! I’m now nearly at the end of the Basic Algorithm Scripting section, but I would […]

https://codedmalarkey.wordpress.com/2015/08/12/bonfire-01-reverse-a-string/

Bonfire 04: Factorialize a Number


TASK: Return the factorial of the provided integer. A recursive function is a function that calls itself until it doesn’t. In this case, it multiplies num * (num-1) until (num-1) = 0, when it multiplies the number obtained so far by 1. Resources: unicodegirl: Example of Recursion Quora: What is the best way to explain […]

https://codedmalarkey.wordpress.com/2015/08/12/bonfire-03-factorialize-a-number/

Bonfire: Factorialize a Number Difficulty: Level 1


I had to redo this one. It showed up correctly the first time, but apparently my answer was so far out in left field, that I got a false positive! Instructions: Return the factorial of the provided integer. If the integer is represented with the letter n, a factorial is the product of all positive […]

https://officiallyjennifer.wordpress.com/2015/08/12/bonfire-factorialize-a-number-difficulty-level-1/

Bonfire 06: Find the Longest Word in a String


TASK: Return the length of the longest word in the provided sentence.

https://codedmalarkey.wordpress.com/2015/08/13/bonfire-06-find-the-longest-word-in-a-string/

Bonfire 08: Return Largest Numbers in Arrays


TASK: Return an array consisting of the largest number from each provided sub-array. For simplicity, the provided array will contain exactly 4 sub-arrays.

https://codedmalarkey.wordpress.com/2015/08/14/bonfire-08-return-largest-numbers-in-arrays/

Bonfire 20: Diff Two Arrays


TASK: Compare two arrays and return a new array with any items not found in both of the original arrays.

https://codedmalarkey.wordpress.com/2015/08/16/bonfire-20-diff-two-arrays/