码迷,mamicode.com
首页 >  
搜索关键字:pascals triangle ii    ( 7733个结果
【剑指Offer】面试题55 - II. 平衡二叉树
题目 输入一棵二叉树的根节点,判断该树是不是平衡二叉树。如果某二叉树中任意节点的左右子树的深度相差不超过1,那么它就是一棵平衡二叉树。 示例 1: 给定二叉树 [3,9,20,null,null,15,7] 返回 true 。 示例 2: 给定二叉树 [1,2,2,3,3,null,null,4,4 ...
分类:其他好文   时间:2020-03-02 01:21:11    阅读次数:70
LeetCode练题——53. Maximum Subarray
1、题目 Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. In Pascal's ...
分类:其他好文   时间:2020-03-02 01:09:35    阅读次数:82
LeetCode练题——118. Pascal's Triangle
1、题目 Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two nu ...
分类:其他好文   时间:2020-03-01 23:19:06    阅读次数:67
内置函数学习
内置函数 I 了解 callable 判断是否可调用 bin oct hex进制转换 all any判断是否全部为真或假 内置函数II 重要 sep 设定分隔符。 end去除默认换行 abs() 获取绝对值 sum() 数字相加求和 min max()可以加功能 reversed() 将一个序列翻转 ...
分类:其他好文   时间:2020-02-29 22:28:33    阅读次数:86
ch3 传感器数据处理II: 激光雷达运动畸变去除
. ...
分类:其他好文   时间:2020-02-29 14:39:08    阅读次数:63
Diverse Garland
You have a garland consisting of nn lamps. Each lamp is colored red, green or blue. The color of the ii-th lamp is sisi ('R', 'G' and 'B' — colors of ...
分类:其他好文   时间:2020-02-29 10:19:53    阅读次数:69
git 码云
版本控制器 """ 完成 协同开发 项目,帮助程序员整合代码 i)帮助开发者合并开发的代码 ii)如果出现冲突代码的合并,会提示后提交合并代码的开发者,让其解决冲突 软件:SVN 、 GIT(都是同一个人的个人项目) github、gitee(两个采用git版本控制器管理代码的公共平台) git:集 ...
分类:其他好文   时间:2020-02-29 00:44:59    阅读次数:108
leetcode-47
给定一个可包含重复数字的序列,返回所有不重复的全排列。 示例: 输入: [1,1,2]输出:[ [1,1,2], [1,2,1], [2,1,1]] 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/permutations-ii著作权归领扣网络所 ...
分类:其他好文   时间:2020-02-28 22:54:04    阅读次数:52
107. 二叉树的层次遍历 II
给定一个二叉树,返回其节点值自底向上的层次遍历。(即按从叶子节点所在层到根节点所在的层,逐层从左向右遍历)例如:给定二叉树[3,9,20,null,null,15,7],3/\920/\157返回其自底向上的层次遍历为:[[15,7],[9,20],[3]]解题思路:首先temp临时记录层次遍历每一层的结点值,当遍历到下一层的结点时就将temp记录到result中.代码实现/***Definiti
分类:其他好文   时间:2020-02-28 12:07:32    阅读次数:53
leetcode118 Pascal's Triangle
1 """ 2 Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. 3 In Pascal's triangle, each number is the sum of the t ...
分类:其他好文   时间:2020-02-28 01:38:29    阅读次数:74
7733条   上一页 1 ... 54 55 56 57 58 ... 774 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!