上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 68 下一页
摘要: 题目如下: Given the array nums consisting of n positive integers. You computed the sum of all non-empty continous subarrays from the array and then sort t 阅读全文
posted @ 2020-09-12 10:17 seyjs 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a date string in the form Day Month Year, where: Day is in the set {"1st", "2nd", "3rd", "4th", ..., "30th", "31st"}. Month is in the set  阅读全文
posted @ 2020-09-12 10:12 seyjs 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Implement the class SubrectangleQueries which receives a rows x cols rectangle as a matrix of integers in the constructor and supports two metho 阅读全文
posted @ 2020-08-30 16:14 seyjs 阅读(294) 评论(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 阅读全文
posted @ 2020-08-30 16:12 seyjs 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given the array favoriteCompanies where favoriteCompanies[i] is the list of favorites companies for the ith person (indexed from 0). Return the 阅读全文
posted @ 2020-08-22 22:08 seyjs 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given an array of numbers arr. A sequence of numbers is called an arithmetic progression if the difference between any two consecutive elements 阅读全文
posted @ 2020-08-22 21:50 seyjs 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given an array of integers arr of even length n and an integer k. We want to divide the array into exactly n / 2 pairs such that the sum of each 阅读全文
posted @ 2020-07-01 10:34 seyjs 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a string path, where path[i] = 'N', 'S', 'E' or 'W', each representing moving one unit north, south, east, or west, respectively. You star 阅读全文
posted @ 2020-07-01 10:23 seyjs 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a binary array nums, you should delete one element from it. Return the size of the longest non-empty subarray containing only 1's in the r 阅读全文
posted @ 2020-07-01 10:20 seyjs 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given two positive integers n and k. A factor of an integer n is defined as an integer i where n % i == 0. Consider a list of all factors of n s 阅读全文
posted @ 2020-07-01 10:11 seyjs 阅读(388) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 68 下一页