[Google] URL query with wild card

摘要: In our indexes, we have millions of URLs each of which has a link to the page content, now, suppose a user type a query with wild cards *, which repre... 阅读全文
posted @ 2013-02-03 07:19 小刀初试 阅读(118) 评论(0) 推荐(0)

[Microsoft] Intealeaving of two given strings, Solution

摘要: Desgin an algorithm to find whether a given sting is formed by the Intealeaving of two given strings. For example, stringA: ABCEF...string B: ABCA...... 阅读全文
posted @ 2013-02-03 05:55 小刀初试 阅读(207) 评论(0) 推荐(0)

[Google] Inorder Successor in Binary Search Tree, Solution

摘要: In Binary Tree, Inorder successor of a node is the next node in Inorder traversal of the Binary Tree. Inorder Successor is NULL for the last node in... 阅读全文
posted @ 2013-02-03 04:01 小刀初试 阅读(209) 评论(0) 推荐(0)

[C++ Summary]

摘要: 1. Pass by pointer VS referenceA pointer can receive a NULL parameter, a reference parameter can not. If there's ever a chance that you could want to ... 阅读全文
posted @ 2013-02-03 03:00 小刀初试 阅读(217) 评论(0) 推荐(0)