![240](https://cdn2.jianshu.io/assets/default_avatar/6-fd30f34c8641f6f32f5494df5d6b8f3c.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
什么是靜態(tài)工廠方法 在Java中龙亲,我們得到類的實(shí)例的最常用的方法是使用 new 關(guān)鍵字來(lái)調(diào)用類的構(gòu)造方法。 每使用一個(gè)new語(yǔ)句鳄炉,JVM就會(huì)在內(nèi)...
驗(yàn)證回文字符串II 給定一個(gè)非空字符串 s杜耙,最多刪除一個(gè)字符。判斷是否能成為回文字符串拂盯。 實(shí)例1:輸入“aba” 輸出true實(shí)例2:輸入“...
https://leetcode-cn.com/problems/sum-of-square-numbers/ c^2 = a^2 + b^2 ...
1.Java語(yǔ)言支持四種類型:接口团驱,類摸吠,數(shù)組和基本數(shù)據(jù)類型。 Java的基本數(shù)據(jù)類型有八種寸痢, 整數(shù)型:byte,short,int,long (...
https://leetcode-cn.com/problems/reverse-vowels-of-a-string/ 需要元音字母保存起來(lái),...
https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/descri...
https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list/desc...
https://leetcode-cn.com/problems/reverse-linked-list/description/ 想到有兩種方...
https://leetcode-cn.com/problems/container-with-most-water/ 1.窮舉法 用雙循環(huán)遍歷...