摘要: Description: Given a sequence of integers, find the longest increasing subsequence (LIS). You code should return the length of the LIS. Example For... 阅读全文
posted @ 2015-09-15 17:49 影湛 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Description: Given an array of integers and a number k, the majority number is the number that occurs more than 1/k of the size of the array. Find i... 阅读全文
posted @ 2015-09-15 15:30 影湛 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Description: Given an array of integers and a number k, the majority number is the number that occurs more than 1/k of the size of the array. Find i... 阅读全文
posted @ 2015-09-15 04:44 影湛 阅读(87) 评论(0) 推荐(0) 编辑
摘要: Description: There is an integer matrix which has the following features: The numbers in adjacent positions are different. The matrix has n rows and... 阅读全文
posted @ 2015-09-15 02:53 影湛 阅读(148) 评论(0) 推荐(0) 编辑