摘要:
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 阅读全文
摘要:
Description: Minimum Absolute Difference User Accepted: 3657 User Tried: 3866 Total Accepted: 3733 Total Submissions: 5783 Difficulty: Easy Given an a 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
Description: Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文