归档 2017年10月8日

LeetCode Weekly Contest 53解题报告

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

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

题解列表:

LeetCode 693. Binary Number with Alternating Bits

LeetCode 695. Max Area of Island

LeetCode 694. Number of Distinct Islands

LeetCode 691. Stickers to Spell Word

 

[LeetCode]Binary Number with Alternating Bits

题目描述:

LeetCode 693. Binary Number with Alternating Bits

Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values.

Example 1:

Input: 5
Output: True
Explanation:
The binary representation of 5 ...

继续阅读

昨天

明天

归档