文章
LeetCode42.接雨水 JavaScript
给定<coden</code个非负整数表示每个宽度为<code1</code的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。!(/img/remote/1460000018424696?w412&h161)上面是由数组<code0,1,0,2,1,0,
Binary Search总结(2)
再来看比较复杂的几道题未完待续
小李飞刀:刷题第五弹!
写在前面的话好几天木有刷题啦,今天猛刷了一把,要梳理一个顺序好好的学习啦~一定要好好执行每天做题的计划!最近真的好忙碌啊,还要做视频。不过呢,看了高效学习的书,感觉其实不能说太分散的学习,应该考虑多方面的联系,形成整体性的学习,还得琢磨琢磨...小李加油呀!认真做题
【Leetcode】106. 从中序与后序遍历序列构造二叉树2
题目根据一棵树的中序遍历与后序遍历构造二叉树。注意:你可以假设树中没有重复的元素。例如,给出中序遍历inorder9,3,15,20,7后序遍历postorder9,15,7,20,3返回如下的二叉树:<pre<code3/
989. Add to Array-Form of Integer
ForanonnegativeintegerX,thearrayformofXisanarrayofitsdigitsinlefttorightorder.Forexample,ifX1231,thenthearrayformis
171. Excel Sheet Column Number
GivenacolumntitleasappearinanExcelsheet,returnitscorrespondingcolumnnumber.Forexample:<pre<codeA>1B>2C>3...Z
1002. Find Common Characters
GivenanarrayAofstringsmadeonlyfromlowercaseletters,returnalistofallcharactersthatshowupinallstringswithinthelist(includingd
859. Buddy Strings
GiventwostringsAandBoflowercaseletters,returntrueifandonlyifwecanswaptwolettersinAsothattheresultequalsB.Example1:<pr
557. Reverse Words in a String III
Givenastring,youneedtoreversetheorderofcharactersineachwordwithinasentencewhilestillpreservingwhitespaceandinitialwordorder.
387. First Unique Character in a String
Givenastring,findthefirstnonrepeatingcharacterinitandreturnit&39;sindex.Ifitdoesn&39;texist,return1.Examples:<pre<codes
已加载文章中没有匹配内容,试试其他关键词或清空搜索。