摘要: 题目如下: 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) 编辑
摘要: 题目如下: Given an array of unique integers salary where salary[i] is the salary of the employee i. Return the average salary of employees excluding the m 阅读全文
posted @ 2020-07-01 10:09 seyjs 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Your country has an infinite number of lakes. Initially, all the lakes are empty, but when it rains over the nth lake, the nth lake becomes full 阅读全文
posted @ 2020-07-01 10:05 seyjs 阅读(220) 评论(0) 推荐(0) 编辑