摘要:
2014-05-12 07:31题目链接原题:I have heard this question many times in microsoft interviews. Given two arrays find the intersection of those two arrays. Besi... 阅读全文
摘要:
2014-05-12 07:27题目链接原题:Convert a base 2 number to a base 4 number题目:把二进制数转化成四进制数。解法:四是二的倍数,所以两位变一位就可以了。代码: 1 // http://www.careercup.com/question?id=2... 阅读全文
摘要:
2014-05-12 07:17题目链接原题:Given below is a tree/trie A B c D e F a>cd>> above string represents the following trie/tree (visualize) and assume that... 阅读全文
摘要:
2014-05-12 07:10题目链接原题:Write a thread safe data structure such that there could be only one writer at a time but there could be n readers reading the ... 阅读全文
摘要:
2014-05-12 06:56题目链接原题:A link list contains following elementsstruct node{ int data; node* next; node* random;}Given head of such a linked li... 阅读全文
摘要:
2014-05-12 06:42题目链接原题:Write your own regular expression parser for following condition: az*b can match any string that starts with and ends with b an... 阅读全文
摘要:
2014-05-12 06:27题目链接原题:Find the max height of a binary tree.题目:计算二叉树的最大高度。解法:最大高度?高度不就是最深的叶子节点到根节点的路径长度吗?我就当是高度吧,递归解决。代码: 1 // http://www.careercup.co... 阅读全文
摘要:
2014-05-12 06:19题目链接原题:Given an input list of lists.. flatten the list. For e.g. {{1,2}, {3}, {4,5}} ... Output should be {1, 2, 3, 4, 5}题目:给定一个二维数组,把... 阅读全文
摘要:
2014-05-12 06:12题目链接原题:Write a function to retrieve the number of a occurrences of a substring(even the reverse of a substring) in a string without us... 阅读全文
摘要:
2014-05-12 00:02题目链接原题:For a given map (ie Bing map) given longitude/latitude/ how would you design the system so that when map longitudeDelta/latitdu... 阅读全文