文章
【leetcode】72. Edit Distance 编辑距离计算
1.题目Giventwowordsword1andword2,findtheminimumnumberofstepsrequiredtoconvertword1toword2.(eachoperationiscountedas1step.
【leetcode】70. Climbing Stairs 每次一阶或两阶爬楼梯
1.题目Youareclimbingastaircase.Ittakesnstepstoreachtothetop.Eachtimeyoucaneitherclimb1or2steps.Inhowmanydistinctway
【leetcode】69. Sqrt(x) 整数开方计算最合适的小的数
1.题目Implementintsqrt(intx).Computeandreturnthesquarerootofx.注:对于5,6,7,8等都返回2.2.思路用牛顿开方法计算。原理:http://www.guokr.com/que
【leetcode】67. Add Binary 字符串形式的二进制的加法
1.题目Giventwobinarystrings,returntheirsum(alsoabinarystring).Forexample,a&34;11&34;b&34;1&34;Return&34;100&34;.2
【leetcode】66. Plus One 用单个数字列表表示的数进行加一返回同样的数字列表形式
1.题目Givenanonnegativenumberrepresentedasanarrayofdigits,plusonetothenumber.Thedigitsarestoredsuchthatthemostsignifican
【leetcode】65. Valid Number 判断字符串是否是一个有效的数字
1.题目Validateifagivenstringisnumeric.Someexamples:&34;0&34;>true&34;0.1&34;>true&34;abc&34;>false&34;1a&34
【leetcode】64. Minimum Path Sum 棋盘最短路径
1.题目Givenamxngridfilledwithnonnegativenumbers,findapathfromtoplefttobottomrightwhichminimizesthesumofallnumbersalong
【leetcode】63. Unique Paths II 有障碍的棋盘走路路径数量
1.题目Followupfor&34;UniquePaths&34;:Nowconsiderifsomeobstaclesareaddedtothegrids.Howmanyuniquepathswouldtherebe?Anobs
《程序员面试金典》部分题目
《程序员面试金典》题目1.3字符串确定两个字符串同构<blockquote<p<emStringA的字符重新排列后,能否变成StringB</em<ahref"https://link.segmentfault.com/?enc5yvOn
【leetcode】62. Unique Paths 棋盘左上角走到右下角的总走法
1.题目Arobotislocatedatthetopleftcornerofamxngrid(marked&39;Start&39;inthediagrambelow).Therobotcanonlymoveeitherdo
已加载文章中没有匹配内容,试试其他关键词或清空搜索。