随笔分类 - LeetCode
摘要:传送门 Description Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example,Given [100, 4, 200, 1,
阅读全文
摘要:传送门 Description Determine whether an integer is a palindrome. Do this without extra space. 思路 题意:判断输入的整数是否是一个回文数,要求不允许使用额外的空间 题解:可以肯定的是小于0以及尾数为0的整数不是回
阅读全文
摘要:传送门 Description Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate num
阅读全文
摘要:传送门 Description There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run ti
阅读全文