摘要: Given the array candies and the integer extraCandies, where candies[i] represents the number of candies that the ith kid has. For each kid check if th 阅读全文
posted @ 2020-06-18 11:59 Schwifty 阅读(222) 评论(0) 推荐(0)
摘要: Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements. Example 1: Input: arr = [ 阅读全文
posted @ 2020-06-18 11:46 Schwifty 阅读(232) 评论(0) 推荐(0)
摘要: Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input:nums = 阅读全文
posted @ 2020-06-18 09:14 Schwifty 阅读(133) 评论(0) 推荐(0)
摘要: Implement the class SubrectangleQueries which receives a rows x cols rectangle as a matrix of integers in the constructor and supports two methods: 1. 阅读全文
posted @ 2020-06-18 07:38 Schwifty 阅读(107) 评论(0) 推荐(0)