Blog

POW – Differences In Languages

Did you know that the language can at times dictate the way people view math? The following is a slight modification of a problem given to me by Matt Emschweiler: A children’s math problem was translated by two different people (a mathematician and a literature major) from two distinct ancient Read more…

By Chris West, ago
Blog

POW Answer – Party Balloons

This is the answer to last week’s Problem of the Week: One thing that I like to do when solving these types of problems is determining what percentage of the work each participant will do. The problem stated that Tasheera takes 16 seconds for each balloon, whereas Omar takes 18 Read more…

By Chris West, ago
Blog

POW – Party Balloons

A group of friends are preparing for a party. Tasheera and Omar are in charge of preparing the balloons. Tasheera takes eight seconds to inflate each balloon, three seconds to tie each, and a five second break in between each one. Omar takes ten seconds to inflate each balloon, five Read more…

By Chris West, ago
Blog

JavaScript – Binary Search

The following is an implementation of a binary search for arrays which gives you the ability to do fuzzy matches (default), exact matches, or specify your own comparison function: I used the following to test the normal execution of this binary function:

By Chris West, ago
Blog

POW – Disarm A Bomb with Water

You are police officer who just showed up to a crime scene where the instructions for disarming a bomb are left.  The bomb is sitting in front of a large fountain of water.  Also, two large bottles are near the bomb.  One bottle has a capacity of 5.2 gallons while Read more…

By Chris West, ago
JavaScript

POW Answer – Unnamed Function #1

The answer to last week’s Problem of the Week is that the following definitions represent the factorial of the given non-negative integer: Mathematical Definition Function Definition Condition unnamed(n) = 1 if n = 0 n × unnamed(n – 1) if n > 0 JavaScript Definition Although it may have been Read more…

By Chris West, ago
Blog

POW – Unnamed Function #1

This Problem of the Week involves determining the identity of a well-known mathematical function by examining the algorithm used on the input number to produce the output.  The function will only accept integers that are greater than or equal to zero. The following is the mathematical definition of the function: Function Definition Condition Read more…

By Chris West, ago