1207. Unique Number of Occurrences

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

Given an array of integers arr, write a function that returns true if and only if the number of occu...

点击数:282 回复数:0

1200. Minimum Absolute Difference

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

Given an array of distinct integers arr, find all pairs of elements with the minimum absolute differ...

点击数:311 回复数:0

1189. Maximum Number of Balloons

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

Given a string text, you want to use the characters of text to form as many instances of the word &q...

点击数:332 回复数:0

1185. Day of the Week

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

Given a date, return the corresponding day of the week for that date. The input is given as three in...

点击数:314 回复数:0

1184. Distance Between Bus Stops

作者:sryan 更新时间:2021-02-26 15:35 分类:数据结构与算法

A bus has n stops numbered from 0 to n - 1 that form a circle. We know the distance between all pair...

点击数:313 回复数:0

1175. Prime Arrangements

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

Return the number of permutations of 1 to n so that prime numbers are at prime indices (1-indexed.) ...

点击数:314 回复数:0

1160. Find Words That Can Be Formed by Characters

作者:sryan 更新时间:2021-02-26 10:41 分类:数据结构与算法

You are given an array of strings words and a string chars. A string is good if it can be formed by ...

点击数:285 回复数:0

1154. Day of the Year

作者:sryan 更新时间:2021-02-26 10:24 分类:数据结构与算法

Given a string date representing a Gregorian calendar date formatted as YYYY-MM-DD, return the day n...

点击数:454 回复数:0

1137. N-th Tribonacci Number

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

The Tribonacci sequence Tn is defined as follows: T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+...

点击数:360 回复数:0

1128. Number of Equivalent Domino Pairs

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

Given a list of dominoes, dominoes[i] = [a, b] is equivalent to dominoes[j] = [c, d] if and only if ...

点击数:371 回复数:0