81. Search in Rotated Sorted Array II

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

There is an integer array nums sorted in non-decreasing order (not necessarily with distinct values)...

点击数:445 回复数:0

57. Insert Interval

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

Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessa...

点击数:433 回复数:0

45. Jump Game II

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

Given an array of non-negative integers nums, you are initially positioned at the first index of the...

点击数:416 回复数:0

1784. Check if Binary String Has at Most One Segment of Ones

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

Given a binary string s ​​​​​without leading zeros, return true​​​ if s contains at most one contigu...

点击数:527 回复数:0

1779. Find Nearest Point That Has the Same X or Y Coordinate

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

You are given two integers, x and y, which represent your current location on a Cartesian grid: (x, ...

点击数:549 回复数:0

1773. Count Items Matching a Rule

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

You are given an array items, where each items[i] = [typei, colori, namei] describes the type, color...

点击数:536 回复数:0

1768. Merge Strings Alternately

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

You are given two strings word1 and word2. Merge the strings by adding letters in alternating order,...

点击数:628 回复数:0

1763. Longest Nice Substring

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

A string s is nice if, for every letter of the alphabet that s contains, it appears both in uppercas...

点击数:720 回复数:0

1758. Minimum Changes To Make Alternating Binary String

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

You are given a string s consisting only of the characters '0' and '1'. In one operation, you can ch...

点击数:440 回复数:0

1752. Check if Array Is Sorted and Rotated

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

Given an array nums, return true if the array was originally sorted in non-decreasing order, then ro...

点击数:464 回复数:0