struct NODE { int nVal; NODE* pLft; NODE* pRgt; NODE(int n) : nVal(n), pLft(NULL), pRgt(NULL) {} }; void get_path(NODE* pNode, vector<NODE*>& vecPath, vector<NODE*>& vecLgstPath) {… more →
haixiaoyangwrote 2 days ago: Here I am, about to fall asleep. After a comfortable night with a few good friends, with many … more →
wrote 5 days ago: We’ve discussed earlier on the effect of using SQL wildcards, such as ‘%[a-z]%’ wi … more →
wrote 6 days ago: Garbled Email, Round 1B 2013. This is a tricky problem. The first tricky part is figuring out an ef … more →
wrote 6 days ago: This is another program which is very basic and the code is for the same program, in one block only … more →
wrote 1 week ago: A month back I found out that Caitlin and I were being invited to Mozilla’s Web Rendering Week … more →
wrote 1 week ago: Worst case O(n) 1. 2 3 4 5 6 7 8 Node *LCA(Node *root, Node *p, Node *q) { if (!root) return NULL … more →
wrote 1 week ago: Over at proze :: and :: conz, there’s all this talk about why static typing does not suck and … more →
wrote 1 week ago: Daily Program for 5/15/2013: Today we will be writing a program to compute the number of possible wa … more →
wrote 1 week ago: I was introduced to the term déjà vu from The Matrix. This is how the scene unfolds: [Neo sees a bla … more →
wrote 1 week ago: Reblogged from The (Dis)Loyal Opposition to Modernity:: Romanticism and nostalgia are two affliction … more →
wrote 1 week ago: Given a string containing only digits, restore it by returning all possible valid IP address combina … more →
wrote 2 weeks ago: I took a lot of time getting through The Recognitions and while I would normally reprimand myself fo … more →
wrote 2 weeks ago: Bildiğimiz gibi parser ları EBNF kurallarını koda dökmek için kullanıyoruz.Bazen bir gramer eşliğind … more →
wrote 2 weeks ago: Check out this interesting article from SQL Server superstar Itzik Ben-Gan on Virtual Auxiliary Tabl … more →
wrote 2 weeks ago: Anyone who has spent some time online, especially in forums or social media where chat and debate pr … more →
wrote 2 weeks ago: Let’s examine Plato[2]; how can we divide it? Let’s back it up a bit: Let’s examin … more →
wrote 2 weeks ago: In the first Meta-post, we explained our research would be divided into three fields. We failed to d … more →
wrote 2 weeks ago: Today I am going to show a very simple example of CTE recursion.. For CTE definition, please refer M … more →
wrote 2 weeks ago: Why would you want to start a blog? Why would you ask me that? I’m not. How can that be? Vacuo … more →