归档 2017

[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, right) ...

继续阅读

[LeetCode]Minimum ASCII Delete Sum for Two Strings

题目描述:

LeetCode 712. Minimum ASCII Delete Sum for Two Strings

Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal.

Example 1:

Input: s1 = "sea", s2 = "eat"
Output: 231 ...

继续阅读

LeetCode Weekly Contest 54解题报告

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

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

题解列表:

LeetCode 697. Degree of an Array

LeetCode 696. Count Binary Substrings

LeetCode 698. Partition to K Equal Sum Subsets

LeetCode 699. Falling Squares

每月存档

去年

明年