Count the number of combinations that add to a given sum in an int array

My roommate Long Tran gave me a coding problem he found on the Internet this afternoon. I first did not think it was actually a coding problem but a puzzle. He gave me 2 samples of integer arrays: 5,5,10,2,3 and 1,2,3,4,5. The goal is finding the number of combinations which add up to 15. I…

2

Visual Studio 2010 x64 code coverage

The internal code coverage tool I was talking about in my previous post has been shipped with Visual Studio 2010. The full path to it is \Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools\x64 for the 64 bit code coverage. 1 layer up the folder is for the x86 code coverage. The commands are the…


UIAutomationClient

In the other blog about UI automation, I forgot to mention how to add the reference and should have included the solution. The assembly to reference is called UIAutomationClient in Visual Studio 2010. Use this MSDN article and James McCaffrey’s blog to get started. I am attaching my sample solution here but the Windows form…