文章
LeetCode 生命游戏,不用新数组的方式
原文链接: LeetCode生命游戏,不用新数组的方式(https://my.oschina.net/ahaoboy/blog/4958278)https://leetcodecn.com/problems/gameoflife/(https://www.oschina.net/action/GoToLink?urlhttps%3A%2
LeetCode 有效的数独
题目:判断一个数独是否有效,根据:SudokuPuzzlesTheRules(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fsudoku.com.au%2FTheRules.aspx)。数独部分填了数字,空的部分用 '.' 表示。!(http://uploa
LeetCode 思路及解答
终于作为转专业小白的我也开始刷题啦!希望能通过记录分享的形式加深解题思路的理解和记忆。也希望大神们能够指点一二。列表中的题目名称都是链接,难度和标签也都是也都是链接,方便归类搜索。NumberProblemNameDifficultyTagsProgrammingLanguages24SwapNodes
LeetCode [Day 4] Add Two Numbers 题解
AddTwoNumbersYouaregiventwolinkedlistsrepresentingtwononnegativenumbers.Thedigitsarestoredinreverseorderandeachoftheirnodescontainasingledigit
LeetCode Golang 6. Z 字形变换
6\.Z字形变换(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fleetcodecn.com%2Fproblems%2Fzigzagconversion%2F)将一个给定字符串根据给定的行数,以从上往下、从左到右进行 Z字形排列。比如输入字符串为 "LEE
LeetCode Golang 8. 字符串转换整数 (atoi)
8\.字符串转换整数(atoi)(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fleetcodecn.com%2Fproblems%2Fstringtointegeratoi%2F)首先,该函数会根据需要丢弃无用的开头空格字符,直到寻找到第一个非空格的字符
LeetCode 92. 反转链表 II(Reverse Linked List II)
题目描述反转从位置_m_到_n_的链表。请使用一趟扫描完成反转。说明:1≤ _m_ ≤ _n_ ≤链表长度。示例:输入:12345NULL,m2,n4输出:14325NULL解题思路本题类似于反转链表
LeetCode 84.柱状图中最大矩形的面积
给定_n_个非负整数,用来表示柱状图中各个柱子的高度。每个柱子彼此相邻,且宽度为1。求在该柱状图中,能够勾勒出来的矩形的最大面积。!(https://img2018.cnblogs.com/blog/1735759/201907/1735759201907081935272741040149911.png)以上是柱状图的示例,其中
LeetCode 767. Reorganize String
Givenastring S,checkiftheletterscanberearrangedsothattwocharactersthatareadjacenttoeachotherarenotthesame.Ifpossible,outputanypossibleresult. Ifno
LeetCode 75. Sort Colors (颜色分类):三路快排
Givenanarraywith _n_ objectscoloredred,whiteorblue,sortthem inplace(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fen.wikipedia.org%2Fwiki%2FInplace_algori
已加载文章中没有匹配内容,试试其他关键词或清空搜索。