标签归档:leetcode

RSS feed of leetcode

[LeetCode]Non-negative Integers without Consecutive Ones

题目描述:

LeetCode 600. Non-negative Integers without Consecutive Ones

Given a positive integer n, find the number of non-negative integers less than or equal to n, whose binary representations do NOT contain consecutive ones.

Example 1:

Input: 5
Output: 5
Explanation ...

继续阅读

[LeetCode]Minimum Index Sum of Two Lists

题目描述:

LeetCode 599. Minimum Index Sum of Two Lists

Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings.

You need to help them find out their ...

继续阅读

LeetCode Weekly Contest 33解题报告

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

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

题解列表:

LeetCode 594. Longest Harmonious Subsequence

LeetCode 593. Valid Square

LeetCode 592. Fraction Addition and Subtraction

LeetCode 588. Design In-Memory File System

[LeetCode]Design In-Memory File System

题目描述:

LeetCode 588. Design In-Memory File System

Design an in-memory file system to simulate the following functions:

ls: Given a path in string format. If it is a file path, return a list that only contains this file's name. If ...

继续阅读