摘要: Given an array of integers nums, write a method that returns the "pivot" index of this array.We define the pivot index as the index where the sum of the numbers to the left of the index is equal to th... 阅读全文
posted @ 2017-11-16 22:03 xiejunzhao 阅读(235) 评论(0) 推荐(0)
摘要: Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other words in words. If there is more than one possible a... 阅读全文
posted @ 2017-11-16 22:02 xiejunzhao 阅读(702) 评论(0) 推荐(0)
摘要: Given a (singly) linked list with head node root, write a function to split the linked list into k consecutive linked list "parts".The length of each part should be as equal as possible: no two parts ... 阅读全文
posted @ 2017-11-16 22:02 xiejunzhao 阅读(176) 评论(0) 推荐(0)