06 2015 档案
摘要:Minimum Size Subarray SumGiven an array ofnpositive integers and a positive integers, find the minimal length of a subarray of which the sum ≥s. If th...
阅读全文
摘要:Implement Trie (Prefix Tree)Implement a trie withinsert,search, andstartsWithmethods.Note:You may assume that all inputs are consist of lowercase lett...
阅读全文
摘要:Course ScheduleThere are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course 0 y...
阅读全文
摘要:Count PrimesDescription:Count the number of prime numbers less than a non-negative number,n.Credits:Special thanks to@mithmattfor adding this problem ...
阅读全文
摘要:Compare Version NumbersCompare two version numbersversion1andversion2.Ifversion1>version2return 1, ifversion1 num2) return 1; ...
阅读全文