Go Chase the Butterflies Ginsberg

On November 28, 2017 my wife and I had to make the decision to put our cat to sleep.  It was a hard decision to make as he was for the most part healthy except for one thing; he may have had a brain tumor. It all started on November 16, 2017.  I came home […]

Coding Challenge – Detect an Anagram

OK, it is time for my unofficial weekly coding challenge.  This time I am going to do a fairly simple challenge involving anagrams.  If you read the definition on Wikipedia it states that an anagram is, “a word or phrase formed by rearranging the letters in a word or a phrase, typically using all the letters […]

Coding Challenge – Reverse Polish Calculator

 Reverse polish notation is a system in which the operators follow the operands.  For example 2 3 + would mean that 2 and 3 should be summed together. It does not need any parenthesis as long as the operators work on a fixed number of operands. Anyways, the coding challenge today is to create a […]

Coding Challenge – Bodies of Water

Problem: Write a program that first takes an integer N giving both the X and Y size, and then N number of lines. Each line will contain N space-delimited characters, 0, 1, or 2. These characters represent altitude on the map. Zero means water. First, find the bodies of water. A body of water is […]

Coding Challenge – Mirror

Problem: Let a mirror be a contiguous group of elements in an array such that somewhere in the array the same group appears in reverse order.  For example, the largest mirror section in {1,2,3,8,9,3,2,1} is length 3 (the {1,2,3} part).  Write a function that will return the length of the biggest mirror in the array. […]