[LeetCode]Maximum Average Subarray II

题目描述:

LeetCode 644. Maximum Average Subarray II

Given an array consisting of n integers, find the contiguous subarray whose length is greater than or equal to k that has the maximum average value. And you need to output the maximum ...

继续阅读

[LeetCode]Exclusive Time of Functions

题目描述:

LeetCode 636. Exclusive Time of Functions

Given the running logs of n functions that are executed in a nonpreemptive single threaded CPU, find the exclusive time of these functions.

Each function has a unique id, start from 0 to ...

继续阅读

[LeetCode]Maximum Average Subarray I

题目描述:

LeetCode 643. Maximum Average Subarray I

Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the maximum average value.

Example 1:

Input ...

继续阅读

LeetCode Weekly Contest 40解题报告

LeetCode Weekly Contest 40是LeetCode举办的第四十五场正式周赛,共4道题目,比赛时长1.5小时。

比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-40/

题解列表:

LeetCode 637. Average of Levels in Binary Tree

LeetCode 640. Solve the Equation

LeetCode 638. Shopping Offers

LeetCode 639. Decode Ways II

年度归档