摘要: Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Return 0 if the array contains less than 2 el 阅读全文
posted @ 2020-11-05 05:32 Sheanne 阅读(66) 评论(0) 推荐(0)
摘要: Given n and m which are the dimensions of a matrix initialized by zeros and given an array indices where indices[i] = [ri, ci]. For each pair of [ri, 阅读全文
posted @ 2020-11-05 04:28 Sheanne 阅读(76) 评论(0) 推荐(0)
摘要: A chef has collected data on the satisfaction level of his n dishes. Chef can cook any dish in 1 unit of time. Like-time coefficient of a dish is defi 阅读全文
posted @ 2020-11-05 04:19 Sheanne 阅读(214) 评论(0) 推荐(0)
摘要: Given two non-negative integers low and high. Return the count of odd numbers between low and high (inclusive). Example 1: Input: low = 3, high = 7 Ou 阅读全文
posted @ 2020-11-05 03:47 Sheanne 阅读(63) 评论(0) 推荐(0)
摘要: A tree is an undirected graph in which any two vertices are connected by exactly one path. In other words, any connected graph without simple cycles i 阅读全文
posted @ 2020-11-05 03:28 Sheanne 阅读(94) 评论(0) 推荐(0)