标签归档:leetcode

RSS feed of leetcode

[LeetCode]Maximum Product of Three Numbers

题目描述:

LeetCode  628. Maximum Product of Three Numbers

Given an integer array, find three numbers whose product is maximum and output the maximum product.

Example 1:

Input: [1,2,3]
Output: 6

Example 2:

Input: [1,2,3,4]
Output: 24

Note:

  1. The length of ...

继续阅读

LeetCode Weekly Contest 37解题报告

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

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

题解列表:

LeetCode 624. Maximum Distance in Arrays

LeetCode 623. Add One Row to Tree

LeetCode 625. Minimum Factorization

LeetCode 621. Task Scheduler

[LeetCode]Task Scheduler

题目描述:

LeetCode 621. Task Scheduler

Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks could be done without original order. Each task could be done in ...

继续阅读