摘要:
QuestionWrite a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: ... 阅读全文
摘要:
QuestionMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.S... 阅读全文
摘要:
QuestionGiven a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. ... 阅读全文
摘要:
QuestionReverse a singly linked list.Solution 1 -- IterativeRemember to set head.next = null or it will report "memory limit exceeds" error. 1 /** 2 ... 阅读全文
摘要:
QuestionGiven a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating le... 阅读全文