James Michael Hare

...hare-brained ideas from the realm of software development...
posts - 166 , comments - 1482 , trackbacks - 0

My Links

News

Welcome to my blog! I'm a Sr. Software Development Engineer in the Seattle area, who has been performing C++/C#/Java development for over 20 years, but have definitely learned that there is always more to learn!

All thoughts and opinions expressed in my blog and my comments are my own and do not represent the thoughts of my employer.

Blogs I Read

Follow BlkRabbitCoder on Twitter

Tag Cloud

Archives

Post Categories

.NET

CSharp

Little Wonders

Little Wonders

vNext

July 2015 Entries

Little Puzzlers–List all anagrams for a word
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 Given a file of all valid words in the English language, write an algorithm that would be suitable for a web page that will list all valid English words that are complete anagrams of the word entered by the user on the page. That is, if the user visits the page and types in POST, ......

Posted On Tuesday, July 28, 2015 1:43 AM | Comments (11) | Filed Under [ My Blog C# Software .NET Little Puzzlers Technology ]

Solution to Little Puzzlers–Find the Majority Element
This is the way I went about the "The Majority Element” 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. A Linear-Time, Linear-Space Solution As with so many puzzlers, there is more than one way to tackle this problem. Let’s first consider the more ......

Posted On Monday, July 20, 2015 10:53 AM | Comments (6) | Filed Under [ My Blog C# Software .NET Little Puzzlers Technology ]

Little Puzzlers–The Majority Element
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 The problem is simple to state, but not immediately apparent how to solve efficiently. Given a list of numbers, determine the number in the majority – that is, find the number that occurs over 50% of the time (for a list of size n that’s ⌊n/2⌋ times). For example, in this sequence: ......

Posted On Tuesday, July 7, 2015 11:19 AM | Comments (26) |

Summer Vacation & 2015 Visual C# MVP Award
Hey folks, it’s been a busy summer here at work and at home. I’ve been busy helping to keep the kids entertained as well as working on a major project at work, which has left me with a few weeks hole in my blogging schedule. Rest assured, I am not gone and will be blogging again in the next week or so. Probably with a new puzzler on Monday. In other news, I received word yesterday that I’ve been awarded a Visual C# MVP award for the 5th consecutive year now. Thank you all so much for reading my blog ......

Posted On Thursday, July 2, 2015 1:13 PM | Comments (3) |

Powered by: