03 2018 档案
摘要:时间限制:1秒 空间限制:32768K 题目描述 有 n 个学生站成一排,每个学生有一个能力值,牛牛想从这 n 个学生中按照顺序选取 k 名学生,要求相邻两个学生的位置编号的差不超过 d,使得这 k 个学生的能力值的乘积最大,你能返回最大的乘积吗? 输入描述: 每个输入包含 1 个测试用例。每个测试
阅读全文
摘要:741. Calculate Maximum Value II Given a string of numbers, write a function to find the maximum value from the string, you can add a + or * sign betwe
阅读全文

浙公网安备 33010602011771号