142. Linked List Cycle IIGiven the head of a linked list, return the node where the cycle begins. If there is no cycle, return
null.
yoruru 發表在 痞客邦 留言(0) 人氣(9)
yoruru 發表在 痞客邦 留言(0) 人氣(3)
160. Intersection of Two Linked ListsGiven the heads of two singly linked-lists headA and headB, return the node at which the two lists intersect. If the two linked lists have no intersection at all, return null.
yoruru 發表在 痞客邦 留言(0) 人氣(0)
876. Middle of the Linked ListGiven the head of a singly linked list, return the middle node of the linked list.
yoruru 發表在 痞客邦 留言(0) 人氣(4)
206. Reverse Linked ListGiven the head of a singly linked list, reverse the list, and return the reversed list.
yoruru 發表在 痞客邦 留言(0) 人氣(3)
21. Merge Two Sorted ListsYou are given the heads of two sorted linked lists list1 and list2.
yoruru 發表在 痞客邦 留言(0) 人氣(4)

There is an integer array nums sorted in ascending order (with distinct values).
yoruru 發表在 痞客邦 留言(0) 人氣(5)

You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once.
Return the single element that appears only once.
yoruru 發表在 痞客邦 留言(0) 人氣(5)

Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value.
yoruru 發表在 痞客邦 留言(0) 人氣(4)

You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previous version, all the versions after a bad version are also bad.
Suppose you have n versions [1, 2, ..., n] and you want to find out the first bad one, which causes all the following ones to be bad.
yoruru 發表在 痞客邦 留言(0) 人氣(3)