摘要: 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 阅读全文
posted @ 2019-01-12 20:14 yuxihong 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Design your implementation of the circular double-ended queue (deque). Your implementation should support following operations: MyCircularDeque(k): Co 阅读全文
posted @ 2019-01-12 19:16 yuxihong 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero. To make pro 阅读全文
posted @ 2019-01-12 17:56 yuxihong 阅读(115) 评论(0) 推荐(0) 编辑
摘要: We are stacking blocks to form a pyramid. Each block has a color which is a one letter string, like `'Z'`. For every block of color `C` we place not i 阅读全文
posted @ 2019-01-12 17:30 yuxihong 阅读(293) 评论(0) 推荐(0) 编辑