1464. Maximum Product of Two Elements in an Array

作者: 更新时间:4 天前 分类:数据结构与算法

Given the array of integers nums, you will choose two different indices i and j of that array. Retur...

点击数:0 回复数:0

1460. Make Two Arrays Equal by Reversing Sub-arrays

作者: 更新时间:4 天前 分类:数据结构与算法

Given two integer arrays of equal length target and arr. In one step, you can select any non-empty s...

点击数:0 回复数:0

1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence

作者: 更新时间:4 天前 分类:数据结构与算法

Given a sentence that consists of some words separated by a single space, and a searchWord. You have...

点击数:0 回复数:0

1450. Number of Students Doing Homework at a Given Time

作者:sryan 更新时间:4 天前 分类:数据结构与算法

Given two integer arrays startTime and endTime and given an integer queryTime. The ith student start...

点击数:7 回复数:0

1446. Consecutive Characters

作者:sryan 更新时间:4 天前 分类:数据结构与算法

Given a string s, the power of the string is the maximum length of a non-empty substring that contai...

点击数:6 回复数:0

1441. Build an Array With Stack Operations

作者:sryan 更新时间:4 天前 分类:数据结构与算法

Given an array target and an integer n. In each iteration, you will read a number from list = {1,2,3...

点击数:6 回复数:0

1437. Check If All 1's Are at Least Length K Places Away

作者:sryan 更新时间:4 天前 分类:数据结构与算法

Given an array nums of 0s and 1s and an integer k, return True if all 1's are at least k places away...

点击数:6 回复数:0

1436. Destination City

作者:sryan 更新时间:4 天前 分类:数据结构与算法

You are given the array paths, where paths[i] = [cityAi, cityBi] means there exists a direct path go...

点击数:5 回复数:0

1431. Kids With the Greatest Number of Candies

作者:sryan 更新时间:4 天前 分类:数据结构与算法

Given the array candies and the integer extraCandies, where candies[i] represents the number of cand...

点击数:6 回复数:0

1422. Maximum Score After Splitting a String

作者:sryan 更新时间:4 天前 分类:数据结构与算法

Given a string s of zeros and ones, return the maximum score after splitting the string into two non...

点击数:6 回复数:0