1640. Check Array Formation Through Concatenation

作者:sryan 更新时间:2021-03-09 09:54 分类:数据结构与算法

You are given an array of distinct integers arr and an array of integer arrays pieces, where the int...

点击数:435 回复数:0

1636. Sort Array by Increasing Frequency

作者:sryan 更新时间:2021-03-08 18:48 分类:数据结构与算法

Given an array of integers nums, sort the array in increasing order based on the frequency of the va...

点击数:445 回复数:0

1629. Slowest Key

作者:sryan 更新时间:2021-03-08 18:23 分类:数据结构与算法

A newly designed keypad was tested, where a tester pressed a sequence of n keys, one at a time. You ...

点击数:420 回复数:0

1624. Largest Substring Between Two Equal Characters

作者:sryan 更新时间:2021-03-08 17:47 分类:数据结构与算法

Given a string s, return the length of the longest substring between two equal characters, excluding...

点击数:508 回复数:0

1619. Mean of Array After Removing Some Elements

作者:sryan 更新时间:2021-03-08 17:25 分类:数据结构与算法

Given an integer array arr, return the mean of the remaining integers after removing the smallest 5%...

点击数:462 回复数:0

1614. Maximum Nesting Depth of the Parentheses

作者:sryan 更新时间:2021-03-08 17:17 分类:数据结构与算法

A string is a valid parentheses string (denoted VPS) if it meets one of the following: It is an empt...

点击数:436 回复数:0

1608. Special Array With X Elements Greater Than or Equal X

作者:sryan 更新时间:2021-03-08 17:07 分类:数据结构与算法

You are given an array nums of non-negative integers. nums is considered special if there exists a n...

点击数:550 回复数:0

1603. Design Parking System

作者:sryan 更新时间:2021-03-08 15:48 分类:数据结构与算法

Design a parking system for a parking lot. The parking lot has three kinds of parking spaces: big, m...

点击数:476 回复数:0

1598. Crawler Log Folder

作者:sryan 更新时间:2021-03-08 15:37 分类:数据结构与算法

The Leetcode file system keeps a log each time some user performs a change folder operation. The ope...

点击数:406 回复数:0

1592. Rearrange Spaces Between Words

作者:sryan 更新时间:2021-03-08 15:22 分类:数据结构与算法

You are given a string text of words that are placed among some number of spaces. Each word consists...

点击数:446 回复数:0