LeetCode: Reverse Words in a String

We describe the normal O(N) time and O(N) space solution and compare two different code, we also discuss how to achieve O(1) space solution by using in-place reversion and doubly linked list.
Read More

Bug Summary for Visual Studio (2): LNK1201 Error at every build

In this post we discuss the LNK1201 Error at every build in Visual Studio 2003. This issue of LNK1201 Error at every build is considered as a bug for Visual Studio 2003 which is caused by the fact that the pdb files are always opened or occupied by the debugger in Visual Studio 2003. We try to explain the reason behind it and give several solutions to resolve this LNK1201 Error.
Read More

Bug Summary for Visual Studio (1): GetSelText(), UTC Time issue

We discuss (1) GetSelText() method for CRichEditCtrl class only returns the first character in the selected text in Visual Studio 2003 but it works correctly in Visual Studio 2008; (2) Using of the same copy of code but different time displaying (UTC related) behavior occur between Visual Studio 2003 and Visual Studio 2008. We described the phenomenon and tried to explain the reason behind them, we also give solutions to solve these problems.
Read More