随笔分类 -  LeetCode

摘要:传送门 Description Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example,Given [100, 4, 200, 1, 阅读全文
posted @ 2017-08-13 23:58 zxzhang 阅读(287) 评论(0) 推荐(0) 编辑
摘要:传送门 Description Determine whether an integer is a palindrome. Do this without extra space. 思路 题意:判断输入的整数是否是一个回文数,要求不允许使用额外的空间 题解:可以肯定的是小于0以及尾数为0的整数不是回 阅读全文
posted @ 2017-08-13 23:48 zxzhang 阅读(174) 评论(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 阅读全文
posted @ 2017-08-13 23:22 zxzhang 阅读(348) 评论(0) 推荐(0) 编辑
摘要:传送门 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 阅读全文
posted @ 2017-08-11 00:13 zxzhang 阅读(183) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示