摘要: Description: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Given linked list -- head =  阅读全文
posted @ 2019-08-27 18:28 CodingYM 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Description: Reverse a singly linked list. Example: Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL Follow up: A linked list can be reversed ei 阅读全文
posted @ 2019-08-27 18:02 CodingYM 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Description: Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the 阅读全文
posted @ 2019-08-27 17:04 CodingYM 阅读(91) 评论(0) 推荐(0) 编辑
摘要: Description: For a non-negative integer X, the array-form of X is an array of its digits in left to right order. For example, if X = 1231, then the ar 阅读全文
posted @ 2019-08-27 16:38 CodingYM 阅读(153) 评论(0) 推荐(0) 编辑