1337. The K Weakest Rows in a Matrix

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

You are given an m x n binary matrix mat of 1's (representing soldiers) and 0's (representing civili...

点击数:452 回复数:0

1332. Remove Palindromic Subsequences

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

Given a string s consisting only of letters 'a' and 'b'. In a single step you can remove one palindr...

点击数:427 回复数:0

1331. Rank Transform of an Array

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

Given an array of integers arr, replace each element with its rank. The rank represents how large th...

点击数:352 回复数:0

1323. Maximum 69 Number

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

Given a positive integer num consisting only of digits 6 and 9. Return the maximum number you can ge...

点击数:333 回复数:0

1317. Convert Integer to the Sum of Two No-Zero Integers

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

Given an integer n. No-Zero integer is a positive integer which doesn't contain any 0 in its decimal...

点击数:307 回复数:0

1313. Decompress Run-Length Encoded List

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

We are given a list nums of integers representing a list compressed with run-length encoding. Consid...

点击数:285 回复数:0

1309. Decrypt String from Alphabet to Integer Mapping

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

Given a string s formed by digits ('0' - '9') and '#' . We want to map s to English lowercase charac...

点击数:297 回复数:0

1304. Find N Unique Integers Sum up to Zero

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

Given an integer n, return any array containing n unique integers such that they add up to 0. Exampl...

点击数:284 回复数:0

1299. Replace Elements with Greatest Element on Right Side

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

Given an array arr, replace every element in that array with the greatest element among the elements...

点击数:291 回复数:0

1295. Find Numbers with Even Number of Digits

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

Given an array nums of integers, return how many of them contain an even number of digits. Example 1...

点击数:340 回复数:0