摘要: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a conca 阅读全文
posted @ 2016-09-26 23:27 咖啡中不塌缩的方糖 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Given an array of n integers nums and a target, find the number of index triplets i, j, k with 0 <= i < j < k < n that satisfy the conditionnums[i] + 阅读全文
posted @ 2016-09-26 07:55 咖啡中不塌缩的方糖 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the 阅读全文
posted @ 2016-09-26 01:22 咖啡中不塌缩的方糖 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return 阅读全文
posted @ 2016-09-26 01:21 咖啡中不塌缩的方糖 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo 阅读全文
posted @ 2016-09-26 00:12 咖啡中不塌缩的方糖 阅读(107) 评论(0) 推荐(0) 编辑