# 归档 2017年7月

## LeetCode Weekly Contest 41解题报告 作者是 在线疯狂 发布于 2017年7月16日 在 LeetCode.

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

LeetCode 643. Maximum Average Subarray I

LeetCode 636. Exclusive Time of Functions

LeetCode 644. Maximum Average Subarray II

LeetCode 642. Design Search Autocomplete System

## 题目描述：

LeetCode 642. Design Search Autocomplete System

Design a search autocomplete system for a search engine. Users may input a sentence (at least one word and end with a special character `'#'`). For each character they type except ' ...

## 题目描述：

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 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 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 ...`