Split Array Largest Sum
Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algorithm to minimize the largest sum among these m subarrays.
(分割数组的最大值最小)
Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algorithm to minimize the largest sum among these m subarrays.
(分割数组的最大值最小)
给定一系列的会议时间间隔intervals,包括起始和结束时间[[s1,e1],[s2,e2],…],找到所需的最小的会议室数量。
(区间重叠最多部分)
Given an integer array, find three numbers whose product is maximum and output the maximum product.
(从数组中找出乘积最大的3个数)
Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result of a sequence of push and pop operations on an initially empty stack.
(判断有效的栈压入、压出序列)
Note:
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, …) which sum to n.
(将一个正整数分为干个平方数的和,使得平方数个数最少)
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 2^31 - 1.
(读数值)
Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5.
(第 n 个丑数)