上一页 1 2 3 4 5 6 7 ··· 20 下一页
摘要: Description: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to 阅读全文
posted @ 2019-09-24 11:04 CodingYM 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Description: Minimum Absolute Difference User Accepted: 3657 User Tried: 3866 Total Accepted: 3733 Total Submissions: 5783 Difficulty: Easy Given an a 阅读全文
posted @ 2019-09-23 18:08 CodingYM 阅读(371) 评论(0) 推荐(0) 编辑
摘要: Description: For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web page’s area, your 阅读全文
posted @ 2019-09-23 15:47 CodingYM 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Description: Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty stri 阅读全文
posted @ 2019-09-23 15:17 CodingYM 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Description: Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i]. After this process, we have 阅读全文
posted @ 2019-09-23 13:18 CodingYM 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Description: Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those 阅读全文
posted @ 2019-09-23 11:56 CodingYM 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Description: Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The 阅读全文
posted @ 2019-09-23 10:42 CodingYM 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Description: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = num 阅读全文
posted @ 2019-09-20 16:52 CodingYM 阅读(91) 评论(0) 推荐(0) 编辑
摘要: Description: Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole a 阅读全文
posted @ 2019-09-20 15:57 CodingYM 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Description: Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its ele 阅读全文
posted @ 2019-09-20 11:36 CodingYM 阅读(259) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 20 下一页