[LeetCode]String Compression

题目描述:

LeetCode 443. String Compression

Given an array of characters, compress it in-place.

The length after compression must always be smaller than or equal to the original array.

Every element of the array should be a character (not int) of ...

继续阅读

[LeetCode]1-bit and 2-bit Characters

题目描述:

LeetCode 717. 1-bit and 2-bit Characters

We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11).

Now given a string represented by ...

继续阅读

LeetCode Weekly Contest 55解题报告

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

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

题解列表:

LeetCode 714. Best Time to Buy and Sell Stock with Transaction Fee

LeetCode 712. Minimum ASCII Delete Sum for Two Strings

LeetCode 713. Subarray Product Less ...

继续阅读

[LeetCode]Range Module

题目描述:

LeetCode  715. Range Module

A Range Module is a module that tracks ranges of numbers. Your task is to design and implement the following interfaces in an efficient manner.

  • addRange(int left, int right) Adds the half-open interval [left ...

继续阅读