摘要:
Merge Sorted Array Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume that nums1 has en 阅读全文
摘要:
Linked List Cycle Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? 阅读全文
摘要:
Remove Duplicates from Sorted Array II Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For example, Given sorted arra 阅读全文
摘要:
Rotate List Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 阅读全文
摘要:
Sort Colors Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the 阅读全文
摘要:
Jump Game II Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represen 阅读全文
摘要:
Remove Nth Node From End of List Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1- 阅读全文
摘要:
Remove Duplicates from Sorted Array Given a sorted array, remove the duplicates in place such that each element appear only once and return the new le 阅读全文
摘要:
Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. Examples: Given 阅读全文