摘要:
Intersection of Two Arrays II Intersection of Two Arrays II Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1 阅读全文
摘要:
Intersection of Two Arrays Intersection of Two Arrays Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2 阅读全文
摘要:
Integer Break Integer Break Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those inte 阅读全文
摘要:
Reverse String Reverse String Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh" 阅读全文
摘要:
op K Frequent Elements op K Frequent Elements Given a non-empty array of integers, return the k most frequent elements. For example,Given [1,1,1,2,2,3 阅读全文
摘要:
Flatten Nested List Iterator Flatten Nested List Iterator Given a nested list of integers, implement an iterator to flatten it. Each element is either 阅读全文
摘要:
Reverse Vowels of a String Reverse Vowels of a String Write a function that takes a string as input and reverse only the vowels of a string. Example 1 阅读全文
摘要:
Power of Four Power of Four Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example:Given num = 16, return tr 阅读全文
摘要:
Maximum Subarray Maximum Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example 阅读全文
摘要:
House Robber III House Robber III The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the 阅读全文