posted @ 2014-11-09 11:47
随笔分类 - Algorithm&DataStructure
Personal practice problems for programmer interview.
摘要:[Description] Given two different strings, find the largest successive common substring.e.g. str1[]="qwertyuiopasdfgh"; str2[]="jhdfgqwertyudfxcv"; ...
阅读全文
摘要:[Description] Given a string, find the largest unique substring.e.g. str[] = "asdfghjkkjhgf"; sub[] = "asd";[Thought] create an auxiliary space 'r...
阅读全文
posted @ 2014-11-09 10:45
摘要:[Description]find the k-th node from the last node of single linked list.e.g. Linked-list: 1-2-3-4-5-6-7-8-9 the last 4th node is: 6[Thought] usin...
阅读全文
posted @ 2014-11-08 17:31
摘要:[Description] Given an array with only '1' and '0', find a largest length sub-array which contains equal number of '1' and '0'. Return the largest num...
阅读全文
posted @ 2014-10-22 18:05
摘要:[Description] Given a unsort linked list, delete all the duplication from them, no temporary space permission.[Thought] Set two points, from head to t...
阅读全文
posted @ 2014-10-22 16:04
摘要:[Description] There is a number in each stages that indicates the most stages you can leap up. Now, giving an array which represents one kind of stair...
阅读全文
posted @ 2014-10-20 17:05
浙公网安备 33010602011771号