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...

点击数:351 回复数: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...

点击数:423 回复数: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...

点击数:432 回复数: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...

点击数:421 回复数: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...

点击数:388 回复数: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.) ...

点击数:408 回复数: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 ...

点击数:406 回复数: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...

点击数:571 回复数: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+...

点击数:452 回复数: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 ...

点击数:484 回复数:0