Archive for September, 2008
Triangle Identification – C++ solution and test code
Here is another interview coding question that I have heard of. You have to write a function to identify the triangle type. You have to return a number between 1 or 4 to identify either a valid triangle type or an error. The solution is very simple requiring only one condensed line of code to identify each triangle type. Two lines of code [...]
Reverse the words in a sentence – C++ solution and test code
Here is a solution to the standard interview questions of reversing the letters in the words of a sentence. It is a more complex version of the even more common "reverse a string" question. I also include my test code. There are two main parts to this. The first identifies where the word boundaries are. The second reverses the letters between [...]
2008 – 2009 UK Tax Graphs
I've produced some graphs using data about the 2008 - 2009 UK tax situation (I also have tax graphs for 09/10 and 10/11). I've tried to make them accurate but beware that I'm not a tax expert so there could well be errors. They have been created for interest only, not for serious use. The first graph is showing how much income tax you pay [...]









