Stella981的头像 ID: 10708576052

Stella981

HelloWorld 社区成员

Stella981

文章16974
个人网站0
加入社区2026

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 72. 编辑距离

原文链接: LeetCode72.编辑距离(https://my.oschina.net/ahaoboy/blog/3113850)https://leetcodecn.com/problems/editdistance/(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2F

LeetCode 69 题

1.题目要求实现 intsqrt(intx) 函数。计算并返回 _x_ 的平方根,其中 _x_ 是非负整数。由于返回类型是整数,结果只保留整数的部分,小数部分将被舍去。示例1:输入:4输出:2示例2:输入:8输出:2说

LeetCode 657. Robot Return to Origin

Thereisarobotstartingatposition(0,0),theorigin,ona2Dplane.Givenasequenceofitsmoves,judgeifthisrobotendsupat(0,0)afteritcompletesitsmoves.The

LeetCode 5073. 进击的骑士(Java)BFS

题目:5073\.进击的骑士(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fleetcodecn.com%2Fcontest%2Fbiweeklycontest9%2Fproblems%2Fminimumknightmoves%2F)一个坐标可以从i

LeetCode 459. 重复的子字符串(Repeated Substring Pattern)

459\.重复的子字符串459\.RepeatedSubstringPattern题目描述给定一个非空的字符串,判断它是否可以由它的一个子串重复多次构成。给定的字符串只含有小写英文字母,并且长度不超过10000。<spanclass"badgebadgepillbadgedanger"LeetCod

LeetCode 39. Combination Sum

问题链接LeetCode39.CombinationSum(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fleetcode.com%2Fproblems%2Fcombinationsum%2Fdescription%2F)题目解析给一组数和一个目

LeetCode 338. 比特位计数

原文链接: LeetCode338.比特位计数(https://my.oschina.net/ahaoboy/blog/3117631)https://leetcodecn.com/problems/countingbits/(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%

LeetCode 235. 二叉搜索树的最近公共祖先

原文链接: LeetCode235.二叉搜索树的最近公共祖先(https://my.oschina.net/ahaoboy/blog/3118052)给定一个二叉搜索树,找到该树中两个指定节点的最近公共祖先。百度百科中最近公共祖先的定义为:“对于有根树T的两个结点p、q,最近公共祖先表示为一个结点x,满足x是p、q的祖先且x