August 2015 Entries
This is the way I went about the "Lowest Common Ancestor" problem. However, keep in mind there are multiple ways to solve this, so don't worry if your solution has variations and it’s entirely possible there are more efficient ways. Feel free to suggest your solution in the comments here or in the original post, but please be respectful of others’ efforts. The Solution The first tendency in this problem is to want to walk back up the tree. This is obviously problematic because we do not have a parent ......
Hey folks, after 8 months back in the mid-west, we had a family meeting and decided that it would be better for my career and our kids to go back to Seattle. We're relocated again, though still waiting for all of our computers, furtniture, etc.
As soon as I can, I will post the solution to the latest puzzler, and send you a new one!
To those who were noticing duplications in my feed, I believe I fixed this, is anyone still noticing issues?
-Jim
I like to keep my brain sharp by working on programming puzzlers. On off weeks I'm going to start posting programming puzzlers I've collected over the years. Hopefully you'll find them as entertaining as I do. The Problem A binary search tree is a tree with the ordered property. That is, for every node in the tree with value x, all nodes in the left subtree are < x and all nodes in the right subtree are > x recursively. So, given a binary search tree (BST) and two values, determine the lowest ......
This is the way I went about the "List all anagrams in a word” problems. However, keep in mind there are multiple ways to solve this, so don't worry if your solution has variations and it’s entirely possible there are more efficient ways. Feel free to suggest your solution in the comments here or in the original post, but please be respectful of others’ efforts. The Solution There are many ways to tackle this problem. Ultimately, the main goal of this problem was to be able to return all the anagram ......