守望初心

靡有不初,鲜克有终。。。

导航

随笔分类 -  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"; ... 阅读全文

posted @ 2014-11-09 11:47 Reynold Liu 阅读(222) 评论(0) 推荐(0)

摘要:[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 Reynold Liu 阅读(187) 评论(0) 推荐(0)

摘要:[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 Reynold Liu 阅读(231) 评论(0) 推荐(0)

摘要:[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 Reynold Liu 阅读(181) 评论(0) 推荐(0)

摘要:[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 Reynold Liu 阅读(182) 评论(0) 推荐(0)

摘要:[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 Reynold Liu 阅读(220) 评论(0) 推荐(0)