摘要:
DescriptionThere are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take c... 阅读全文
摘要:
DescriptionGiven an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is... 阅读全文
摘要:
DescriptionGiven an unsorted array of integers, find the length of longest increasing subsequence. For example, Given [10, 9, 2, 5, 3, 7, 1... 阅读全文
摘要:
DescriptionGiven an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the w... 阅读全文
摘要:
DescriptionGiven an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Exam... 阅读全文