xinyu04

导航

2022年9月30日 #

[Oracle] LeetCode 560 Subarray Sum Equals K 思维+Map

摘要: Given an array of integers nums and an integer k, return the total number of subarrays whose sum equals to k. A subarray is a contiguous non-empty seq 阅读全文

posted @ 2022-09-30 23:16 Blackzxy 阅读(10) 评论(0) 推荐(0) 编辑

[Oracle] LeetCode 146 LRU Cache 经典题

摘要: Design a data structure that follows the constraints of a Least Recently Used(LRU) cache. Implement the LRUCache class: LRUCache(int capacity) Initial 阅读全文

posted @ 2022-09-30 03:36 Blackzxy 阅读(23) 评论(0) 推荐(0) 编辑