文章
[Leetcode] Pascal's Triangle II 杨辉三角
Pascal&39;sTriangleII<blockquote<pGivenanindexk,returnthekthrowofthePascal&39;striangle.</p<pForexample,givenk3,<br/
[Leetcode] House Robber I & II & III 入室盗窃
HouseRobberI<blockquote<pYouareaprofessionalrobberplanningtorobhousesalongastreet.Eachhousehasacertainamountofmoneysta
265. Paint House II
_题目:_Therearearowofnhouses,eachhousecanbepaintedwithoneofthekcolors.Thecostofpaintingeachhousewithacertaincolorisdiff
256. Paint House
_题目:_herearearowofnhouses,eachhousecanbepaintedwithoneofthethreecolors:red,blueorgreen.Thecostofpaintingeachhousewith
276. Paint Fence
题目:Thereisafencewithnposts,eachpostcanbepaintedwithoneofthekcolors.Youhavetopaintallthepostssuchthatnomorethantwoadjac
343. Integer Break
题目:Givenapositiveintegern,breakitintothesumofatleasttwopositiveintegersandmaximizetheproductofthoseintegers.Returnthemaxi
[Leetcode] Intersection of Two Arrays II 找数组的交集
IntersectionofTwoArraysII<blockquote<pre<codeGiventwoarrays,writeafunctiontocomputetheirintersection.Example:Givennums1
300. Longest Increasing Subsequence
题目:Givenanunsortedarrayofintegers,findthelengthoflongestincreasingsubsequence.Forexample,Given10,9,2,5,3,7,101,18,Thelon
264. Ugly NumberII & 313. Super Ugly Number
264UglyNumberII题目:Writeaprogramtofindthenthuglynumber.Uglynumbersarepositivenumberswhoseprimefactorsonlyinclude2,3,5.
174. Dungeon Game
题目:Thedemonshadcapturedtheprincess(P)andimprisonedherinthebottomrightcornerofadungeon.ThedungeonconsistsofMxNroomslaid
已加载文章中没有匹配内容,试试其他关键词或清空搜索。