归档 2018年1月14日

LeetCode Weekly Contest 67解题报告 作者是 在线疯狂 发布于 2018年1月14日 在 LeetCode.

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

LeetCode 762. Prime Number of Set Bits in Binary Representation

LeetCode 763. Partition Labels

LeetCode 764. Largest Plus Sign

LeetCode 765. Couples Holding Hands

题目描述：

LeetCode 765. Couples Holding Hands

N couples sit in 2N seats arranged in a row and want to hold hands. We want to know the minimum number of swaps so that every couple is sitting side by side. A ...

题目描述：

LeetCode 764. Largest Plus Sign

In a 2D `grid` from (0, 0) to (N-1, N-1), every cell contains a `1`, except those cells in the given list `mines` which are `0`. What is the largest axis-aligned plus sign of ...

题目描述：

LeetCode 763. Partition Labels

A string `S` of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one part, and return a list of ...

题目描述：

LeetCode 762. Prime Number of Set Bits in Binary Representation

Given two integers `L` and `R`, find the count of numbers in the range `[L, R]` (inclusive) having a prime number of set bits in their binary representation.

(Recall ...