摘要:
找出两个链表的交点 题目: Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked list 阅读全文
摘要:
489. Convert Array List to Linked List Convert an array list to a linked list. 489. Convert Array List to Linked List Convert an array list to a linke 阅读全文
摘要:
228. Middle of Linked List Find the middle node of a linked list. Find the middle node of a linked list. Find the middle node of a linked list. Exampl 阅读全文
摘要:
174. Remove Nth Node From End of List Given a linked list, remove the nth node from the end of list and return its head. Given a linked list, remove t 阅读全文
摘要:
225. Find Node in Linked List Find a node with given value in a linked list. Return null if not exists. Find a node with given value in a linked list. 阅读全文
摘要:
85. Insert Node in a Binary Search Tree Given a binary search tree and a new tree node, insert the node into the tree. You should keep the tree still 阅读全文
摘要:
93. Balanced Binary Tree Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a bina 阅读全文
摘要:
177. Convert Sorted Array to Binary Search Tree With Minimal Height Given a sorted (increasing order) array, Convert it to create a binary tree with m 阅读全文
摘要:
487. Name Deduplication Given a list of names, remove the duplicate names. Two name will be treated as the same name if they are equal ignore the case 阅读全文
摘要:
155. Minimum Depth of Binary Tree Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from t 阅读全文