文章
leetcode讲解--169. Majority Element
169.MajorityElementGivenanarrayofsizen,findthemajorityelement.Themajorityelementistheelementthatappearsmorethan⌊n/2⌋ti
leetcode讲解之开篇--刷题技巧
一直想系统的刷一套OJ(OnlineJudge,在线编程练习),对于锻炼自己的思维,算法能力,以及coding能力都是非常有帮助的。说干就干吧,我选了leetcode,选这个的原因嘛:有名气啊,大家都知道leetcode答案多啊,上网一搜,不愁没有教程,可以给解不出题的娃提供及时
leetcode讲解--94. Binary Tree Inorder Traversal
94.BinaryTreeInorderTraversalGivenabinarytree,returntheinordertraversalofitsnodes&39;values.Forexample:Givenbinarytree1,
Leetcode 5 Longest Palindromic Substring 最长回文子串
<blockquote<pGivenastrings,findthelongestpalindromicsubstringins.Youmayassume<br/thatthemaximumlengthofsis1000.<br/<strongExa
LeetCode 14_Longest Common Prefix
https://leetcode.com/articles...(https://link.segmentfault.com/?encdSrI41GFraS%2FSQ04%2BhM4Hw%3D%3D.M0yOSecY8oiet4CC0MGzZ8XcYe5ws7gaL532rrgxYtfYIiz
LeetCode 13_Roman to Integer
题目Givenaromannumeral,convertittoaninteger.Inputisguaranteedtobewithintherangefrom1to3999.Subscribetoseewhichcompanies
LeetCode 12_Integer to Roman
题目Givenaninteger,convertittoaromannumeral.Inputisguaranteedtobewithintherangefrom1to3999.罗马数字规则罗马数字共有7个,即I(1)、V(5)、
LeetCode 11_Container With Most Water
题目Givennnonnegativeintegersa1,a2,...,an,whereeachrepresentsapointatcoordinate(i,ai).nverticallinesaredrawnsuchthatthet
LeetCode 6_ZigZag Conversion
题目Thestring&34;PAYPALISHIRING&34;iswritteninazigzagpatternonagivennumberofrowslikethis:(youmaywanttodisplaythispattern
LeetCode 4_Median of Two Sorted Arrays
MedianofTwoSortedArraysTherearetwosortedarraysaandaofsizemandnrespectively.Findthemedianofthetwosortedarrays.Theoverallr
已加载文章中没有匹配内容,试试其他关键词或清空搜索。