摘要: 1 """ 2 We are given a linked list with head as the first node. Let's number the nodes in the list: node_1, node_2, node_3, ... etc. 3 4 Each node may 阅读全文
posted @ 2020-02-01 22:23 yawenw 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given the head of a linked list, we repeatedly delete consecutive sequences of nodes that sum to 0 until there are no such sequences. 3 4 Afte 阅读全文
posted @ 2020-02-01 22:20 yawenw 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 We are given head, the head node of a linked list containing unique integer values. 3 4 We are also given the list G, a subset of the values i 阅读全文
posted @ 2020-02-01 22:18 yawenw 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given an array of integers, return indices of the two numbers such that they add up to a specific target. 3 4 You may assume that each input w 阅读全文
posted @ 2020-02-01 22:14 yawenw 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 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 阅读全文
posted @ 2020-02-01 22:02 yawenw 阅读(96) 评论(0) 推荐(0) 编辑