![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)鍵字來調(diào)用類的構(gòu)造方法。 每使用一個new語句,JVM就會在內(nèi)...
驗(yàn)證回文字符串II 給定一個非空字符串 s泄朴,最多刪除一個字符。判斷是否能成為回文字符串。 實(shí)例1:輸入“aba” 輸出true實(shí)例2:輸入“...
https://leetcode-cn.com/problems/sum-of-square-numbers/ c^2 = a^2 + b^2 ...
1.Java語言支持四種類型:接口,類蟀架,數(shù)組和基本數(shù)據(jù)類型。 Java的基本數(shù)據(jù)類型有八種榆骚, 整數(shù)型:byte,short,int,long (...
https://leetcode-cn.com/problems/reverse-vowels-of-a-string/ 需要元音字母保存起來片拍,...
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)遍歷...