摘要:
iven two integer arrays A and B, return the maximum length of an subarray that appears in both arrays. Example 1: Note: 阅读全文
posted @ 2019-07-09 21:38
月半榨菜
阅读(105)
评论(0)
推荐(0)
摘要:
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the 阅读全文
posted @ 2019-07-09 21:08
月半榨菜
阅读(64)
评论(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 @ 2019-07-09 20:47
月半榨菜
阅读(67)
评论(0)
推荐(0)
摘要:
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). Y 阅读全文
posted @ 2019-07-09 15:14
月半榨菜
阅读(87)
评论(0)
推荐(0)
摘要:
Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into k non-empty subsets whose sums are all 阅读全文
posted @ 2019-07-09 10:26
月半榨菜
阅读(112)
评论(0)
推荐(0)
浙公网安备 33010602011771号