摘要: 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 影湛 阅读(197) 评论(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 影湛 阅读(127) 评论(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 影湛 阅读(96) 评论(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 影湛 阅读(154) 评论(0) 推荐(0)