May 2015 Entries
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. This one is a more straight-forward puzzler. There’s no gotcha or “ah-hah” moment in solving this, it’s just an exercise in coding. I’ll try to vary up the difficulty level of problems so they’re not all easy and not all brain-busters… The Problem Given a 2d 9 x 9 array of char representing ......
Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to write and maintain. The index of all my past little wonders posts can be found here. Visual Studio 2015 is on the horizon! In fact, some of you may already have played with the preview and seen some of the many neat new things to come – both in the IDE and in the C# language. Note: All of the C# 6 features mentioned are current with the latest ......
This is the way I went about the "Positive Integer to Roman Numerals” 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. My Approach My approach was fairly straight-forward. I simply built a “table” of denominations to the symbol that represents that denomination ......
Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to write and maintain. The index of all my past little wonders posts can be found here. Visual Studio 2015 is on the horizon! In fact, some of you may already have played with the preview and seen some of the many neat new things to come – both in the IDE and in the C# language. As with many of these posts, I started off thinking this was going to ......
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. There’s really no “ah-hah!” moment with this problem, but it is still – I find – a good programming problem for seeing how well a candidate’s mind works in structuring logic and finding patterns. The Problem Given a positive integer (i.e. > 0), please return a string representation of that ......