⸜(ˊᗜˋ)⸝嗨,我是wec,今天是DAY 20。
🔎 題目難度與描述
難度:MEDIUM
題目描述:
給定一個整數數組 prices,其中 prices[i]...
這題要從一個可能包含重複數字的整數陣列中,返回所有可能的「子集」(就是「冪集」),要注意的是,解集不能包含重複的子集。想法:這個問題的重點在怎麼處理重複元素,確...
這題要實作一個 LRU (Least Recently Used) cache,就是當超過容量時,會淘汰最久沒被用的元素,需要實作一個 LRUCache 類別,...
Given the head of a singly linked list, reverse the list, and return the revers...
Given a sorted array of distinct integers and a target value, return the index...
嘿嘿~今天我們來聊一個超級有趣的小挑戰。這個題目應該很適合那些常常覺得「為什麼總是我?」的朋友們~哈哈,開玩笑的啦!題目是這樣的:有一個整數陣列 nums,裡...