953. Verifying an Alien Dictionary

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

In an alien language, surprisingly they also use english lowercase letters, but possibly in a differ...

点击数:320 回复数:0

944. Delete Columns to Make Sorted

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

We are given an array A of N lowercase letter strings, all of the same length. Now, we may choose an...

点击数:348 回复数:0

942. DI String Match

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

Given a string S that only contains "I" (increase) or "D" (decrease), let N = S....

点击数:364 回复数:0

941. Valid Mountain Array

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

Given an array of integers arr, return true if and only if it is a valid mountain array. Recall that...

点击数:320 回复数:0

938. Range Sum of BST

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

Given the root node of a binary search tree, return the sum of values of all nodes with a value in t...

点击数:355 回复数:0

937. Reorder Data in Log Files

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

You have an array of logs. Each log is a space delimited string of words. For each log, the first wo...

点击数:420 回复数:0

933. Number of Recent Calls

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

You have a RecentCounter class which counts the number of recent requests within a certain time fram...

点击数:352 回复数:0

929. Unique Email Addresses

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

Every email consists of a local name and a domain name, separated by the @ sign. For example, in ali...

点击数:334 回复数:0

893. Groups of Special-Equivalent Strings

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

You are given an array A of strings. A move onto S consists of swapping any two even indexed charact...

点击数:325 回复数:0

Long Pressed Name

作者:sryan 更新时间:2020-05-27 10:54 分类:数据结构与算法

Your friend is typing his name into a keyboard. Sometimes, when typing a character c, the key might ...

点击数:573 回复数:0