摘要: Given an integer n, return the number of ways you can write n as the sum of consecutive positive integers. Example 1: Input: n = 5 Output: 2 Explanati 阅读全文
posted @ 2021-08-31 09:29 苗妙苗 阅读(77) 评论(0) 推荐(0) 编辑
摘要: Given an array of strings words (without duplicates), return all the concatenated words in the given list of words. A concatenated word is defined as 阅读全文
posted @ 2021-08-31 09:14 苗妙苗 阅读(27) 评论(0) 推荐(0) 编辑
摘要: Design and implement a data structure for a Least Frequently Used (LFU) cache. Implement the LFUCache class: LFUCache(int capacity) Initializes the ob 阅读全文
posted @ 2021-08-31 07:39 苗妙苗 阅读(29) 评论(0) 推荐(0) 编辑
摘要: You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smal 阅读全文
posted @ 2021-08-31 02:53 苗妙苗 阅读(33) 评论(0) 推荐(0) 编辑