上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element with - 阅读全文
posted @ 2020-06-29 11:56 whatyouthink 阅读(47) 评论(0) 推荐(0) 编辑
摘要: Given the array prices where prices[i] is the price of the ith item in a shop. There is a special discount for items in the shop, if you buy the ith i 阅读全文
posted @ 2020-06-29 11:50 whatyouthink 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Given a m * n matrix grid which is sorted in non-increasing order both row-wise and column-wise. Return the number of negative numbers in grid. 每行是不递减 阅读全文
posted @ 2020-06-29 11:28 whatyouthink 阅读(60) 评论(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-06-29 10:51 whatyouthink 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Given two integer arrays startTime and endTime and given an integer queryTime. The ith student started doing their homework at the time startTime[i] a 阅读全文
posted @ 2020-06-29 10:16 whatyouthink 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Given the array of integers nums, you will choose two different indices i and j of that array. Return the maximum value of (nums[i]-1)*(nums[j]-1). 很简 阅读全文
posted @ 2020-06-28 23:07 whatyouthink 阅读(63) 评论(0) 推荐(0) 编辑
摘要: On a plane there are n points with integer coordinates points[i] = [xi, yi]. Your task is to find the minimum time in seconds to visit all points. You 阅读全文
posted @ 2020-06-28 22:51 whatyouthink 阅读(82) 评论(0) 推荐(0) 编辑
摘要: Given an array nums of integers, return how many of them contain an even number of digits. 就是给一个数组,求数组里面每个数字的位数是偶数的个数。 对每个数不停除10得到每个数的位数,然后判断一下是否是偶数。 阅读全文
posted @ 2020-06-28 22:45 whatyouthink 阅读(65) 评论(0) 推荐(0) 编辑
摘要: Given two arrays of integers nums and index. Your task is to create target array under the following rules: Initially target array is empty. From left 阅读全文
posted @ 2020-06-28 22:40 whatyouthink 阅读(59) 评论(0) 推荐(0) 编辑
摘要: We are given a list nums of integers representing a list compressed with run-length encoding. Consider each adjacent pair of elements [freq, val] = [n 阅读全文
posted @ 2020-06-28 21:48 whatyouthink 阅读(51) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 下一页