POW – Unnamed Function #2

This Problem of the Week involves determining the identity of a well-known computer science function and renaming the variables so that the definition makes more sense.  The following is the function definition (obfuscated by me): What I can tell you is that this function takes in a sorted array (in ascending order) as the Read more…

POW Answer – Fill In The Blanks In SQL

The following is one answer to this Problem of the Week that works in PostgreSQL (and probably in other flavors of SQL):

POW Answer – Fixing Compilable JavaScript Code

The following answers the Problem of the Week from May 14, 2012: At first glance, it may seem that the following would be the solution: Unfortunately, the above results in true being returned. In order to get false to be returned, you could do the following: Even though the result Read more…

POW – Fixing Compilable JavaScript Code

Many JavaScript/JScript developers use Google Closure Compiler to compile their code. Even though this tool is a great way of minifying JavaScript code, believe it or not, it doesn’t always work (at least as of May 14, 2012). The following JavaScript code works fine when you run it without being Read more…

POW Answer – 0.999999 Repeating Equals One?

The following answers the Problem of the Week from May 7, 2012: One of the simplest ways to prove that 0.999999 = 1 is by doing the following: 0.333333 = 1 / 3 3 × (0.333333) = 3 × (1 / 3) 0.999999 = 1 As shown above, since it Read more…

POW Answer – Differences In Languages

This is the answer to the Problem of the Week that was posted on April 30. The desired answer is 0. The reason is because “11” in binary is actually equal to 3. Therefore 3 – 3 = 0. On the other hand, you could use the following table to Read more…

POW – 0.99999 Repeating Equals One?

How can you prove or disprove that 1 = 0.999999…? The answer to this Problem of the Week can be found here.

Blog

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…

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…

POW Answer – Disarm A Bomb with Water

This is the answer to last week’s Problem of the Week: Fill the 5.2 gallon bottle. Poor 4 gallons from the 5.2 bottle into to 4 gallon bottle, leaving 1.2 gallons in the 5.2 gallon bottle. Empty the 4 gallon bottle. Poor the remaining 1.2 gallons into the 4 gallon Read more…