上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 64 下一页
摘要: Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell becomes the ave 阅读全文
posted @ 2017-10-12 09:47 __Meng 阅读(271) 评论(0) 推荐(0) 编辑
摘要: Given an array with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. We define an array is non-decr 阅读全文
posted @ 2017-10-11 11:24 __Meng 阅读(215) 评论(0) 推荐(0) 编辑
摘要: Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be 阅读全文
posted @ 2017-10-10 18:50 __Meng 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte 阅读全文
posted @ 2017-10-10 10:41 __Meng 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo 阅读全文
posted @ 2017-10-09 09:52 __Meng 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi 阅读全文
posted @ 2017-09-29 10:43 __Meng 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leadin 阅读全文
posted @ 2017-09-28 09:31 __Meng 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they 阅读全文
posted @ 2017-09-27 16:19 __Meng 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1 给一个和,从无序数组中找2个数=这个和,输出这2个数的索引 3 最长不含重复字符的子字符串 5 最长回文子串 7 反转一个整数,溢出时返回0 9 判断一个数是不是回文数 11 盛水的容器 13 把罗马数字转成阿拉伯整数 14 输出几个字符串的最长公共前缀 20 括号匹配 21 合并两个有序单链表 阅读全文
posted @ 2017-09-26 20:11 __Meng 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example,Given nums = [0, 1, 阅读全文
posted @ 2017-09-26 09:21 __Meng 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 64 下一页