随笔分类 -  leetcode

摘要:题目: Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number. An example is the root-to-leaf path1->2->3whic 阅读全文
posted @ 2018-06-06 13:47 花花与小叮当 阅读(284) 评论(0) 推荐(0)
摘要:题目: Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given1->2->3->4->5->NULL, m = 2 and n = 4, For example: G 阅读全文
posted @ 2018-06-06 13:46 花花与小叮当 阅读(495) 评论(0) 推荐(0)
摘要:题目: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep 阅读全文
posted @ 2018-06-06 13:45 花花与小叮当 阅读(240) 评论(0) 推荐(0)
摘要:题目: Given a singly linked list L: L 0→L 1→…→L n-1→L n,reorder it to: L 0→L n →L 1→L n-1→L 2→L n-2→…You must do this in-place without altering the node 阅读全文
posted @ 2018-06-06 13:43 花花与小叮当 阅读(154) 评论(0) 推荐(0)