Below is my solution to the Programming Praxis problem from Feb. 15, 2011. The problem came from Google Code Jam Qualification Round Africa 2010. For more info, check this link. And here are some tests I did to make sure everything worked properly.
Kaprekar Numbers
Below is my solution to the Programming Praxis problem from Sept. 21, 2010. The problem was to find all Kaprekar numbers less than 1000. I wrote my solution in C++ to refresh my skills a little. For more info, see this link.
Solution: Petals Around The Rose, Dec. 18, 2012
Here is my solution to the Programming Praxis problem for Dec. 18, 2012. It is written in Python, which proved to be quite straightforward. The task: Implement the Petals Around The Rose Game! (see link for more details) My solution:
Solution: 2013 Equations, Jan. 1, 2013
Here’s my solution to the problem for Jan. 1, 2013. The solution is written in Python. The task: As we begin the new year, we note that 109-8*7+654*3-2/1 = 2013. There are three other combinations of the numbers 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, in order, combined with the five operators […]
Solution: Three Wise Men Problem, Dec. 28, 2012
This solution is written in Java. The task: Three wise men named Caspar, Melchior and Balthazar went to Macy’s Department Store on 34th Street to buy gifts of gold, frankincense, and myrrh. When they took their gifts to the cashier, she multiplied the prices of the items and found a total price of $65.52, but […]
Solution: Four Points Determine a Square, Jan. 2, 2013
Here is my solution to the Programming Praxis exercise from Jan. 2, 2013. The solution is written in C++. The task: Your task is to write a function that determines if four input points determine a square. My solution:
Solution: Building Primes Dec. 21, 2012
Here is my solution to the Programming Praxis exercise from Dec. 21, 2012. The solution is written in python. The task: It is sometimes possible, starting with a prime, to add a digit to the front of the number that forms a new prime. For instance, starting from prime 7, adding 1 forms prime 17, […]