小奥的学习笔记

  • Home
  • Learning & Working
    • Speech Enhancement Notes
    • Programming language
    • Computer & DL
    • MOOC
  • Life
    • Life Time
    • Thinking & Comprehension
    • Volunteer
    • Plan
    • Travel
  • Footprints
  • GuestBook
  • About
    • About Me
    • 个人履历
    • 隐私策略
Study-notes
Algorithm

最大堆和最小堆

最大堆和最小堆 一、堆树的定义堆树的定义如下: 堆树是一颗完全二叉树; 堆树中某个节点的值总是不大于或不小于其孩子节点的值; 堆树中每个节点的子树都是堆树。当父节点的键值总是大于或等于任何一个子节点的键值时为最大堆。 当父节点的键值总是小于或等于任何一个子节点的键值时为最小堆。如下图所示,第一个图为最大堆,第二个为最小堆。 二、堆树的操作以最大堆为例进行讲解,最小堆同理。 原始数据为a[] = {4, 1, 3, 2, 16, 9, 10, 14, 8, 7},采用顺序存储方式,对应的完全二叉树如下图所示: 构造最…

2019年4月19日 0条评论 932点热度 0人点赞 yszhang 阅读全文
Leetcode

[Leetcode]merge sorted array

merge sorted array 题目描述 Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:  You may assume that A has enough space to hold additional elements from B. The number of elements initialized in A and B are mand n respectively. 题目解析 由于…

2019年4月18日 0条评论 1275点热度 0人点赞 yszhang 阅读全文
Leetcode

[leetcode]n queens ii

n queens ii 题目描述 Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions. 题目解析 我们令x[i]的值为第i个皇后所在的列数。那么我们第一个皇后的位置可以在第一行任意一个位置任选,所以我们试出来第一个皇后在第1到第n个列位置下的不同情况(一共有n颗n叉树)。然后安排完第一个皇后位置后,第二个皇后位置在第二行也是…

2019年4月17日 0条评论 1116点热度 0人点赞 yszhang 阅读全文
Leetcode

[leetcode]unique binary search trees

题目描述 Given n, how many structurally unique BST's (binary search trees) that store values 1...n?For example, Given n = 3, there are a total of 5 unique BST's. 题目解析 我们可以发现,只需求出左、右子树各有多少种,二者相乘即为以 i 作为root时BST的总数。所以我们可以用动态规划来实现。当节点数为0个的时候,子树为0个,节点为1个的时候,子树为1个,节点数为…

2019年4月15日 0条评论 1124点热度 0人点赞 yszhang 阅读全文
Leetcode

[leetcode]roman to integer(罗马数字转整数)

题目描述 Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 题目解析 罗马数字的规律如下: 罗马数字 阿拉伯数字 I 1 V 5 X 10 L 50 C 100 D 500 M 1000 另外还要注意的是: - 相同的数字连写、所表示的数等于这些数字相加得到的数、如:Ⅲ=3; - 小的数字在大的数字的右边、所表示的数等于这些数字相加得到的数、 如:Ⅷ=8…

2019年4月15日 0条评论 1192点热度 0人点赞 yszhang 阅读全文
Leetcode

[leetcode]Same Tree

题目描述 Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value. 思路说明 其实这个题非常简单,算是判断一个树是不是另一个树子树的基础版,不需要调用另一个子程序,直接递归自己这个程序即可。就是判断树上每一个结点…

2019年4月15日 0条评论 1124点热度 0人点赞 yszhang 阅读全文
Leetcode

[leetcode]populating next right pointers in each node

题目描述 题目描述 Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set toNULL. Initially, all…

2019年4月15日 0条评论 1255点热度 0人点赞 yszhang 阅读全文
1…1516171819…72
搜索
欢迎关注我的个人公众号
最新 热点 随机
最新 热点 随机
WeNet: Production Oriented Streaming and Non-streaming End-to-End Speech Recognition Toolkit DEEPFILTERNET:一种基于深度滤波的全频带音频低复杂度语音增强框架 奥地利匈牙利九日游旅程 论文阅读之Study of the General Kalman Filter for Echo Cancellation 小奥看房之鸿荣源珈誉府 杭州往返旅途及西溪喜来登和万怡的体验报告
DEEPFILTERNET:一种基于深度滤波的全频带音频低复杂度语音增强框架WeNet: Production Oriented Streaming and Non-streaming End-to-End Speech Recognition Toolkit
[leetcode]unique binary search trees 离开北京 中考目标公布 第四章:类与对象(三)析构函数 牛客网选择题整理20190616 2010 S.V Beijing Travel Ready:Things
标签聚合
生活 算法 Python 鸟哥的linux私房菜 python学习 高中 学习 linux Java leetcode
最近评论
davidcheung 发布于 12 个月前(02月09日) The problem has been fixed. May I ask if you can s...
tk88 发布于 12 个月前(02月07日) Hmm is anyone else having problems with the pictur...
cuicui 发布于 1 年前(10月20日) :wink:
niming 发布于 1 年前(09月19日) 同级校友,能刷到太巧了
davidcheung 发布于 2 年前(08月16日) 我得找一下我之前整理的word文档看一下,如果找到了我就更新一下这篇文章。
Nolan 发布于 3 年前(07月25日) 您的笔记非常有帮助。贴图不显示了,可以更新一下吗?
davidcheung 发布于 4 年前(06月19日) 到没有看webrtc的代码。现在主要在看我们公司的代码了。。。只是偶尔看一看webrtc的东西。。。
aobai 发布于 4 年前(03月13日) gain_change_hangover_ 应该是每三个block 只能够调整一次,这样保证每帧...
匿名 发布于 5 年前(12月30日) 烫
小奥 发布于 5 年前(12月12日) webRTC里面的NS本身我记得就是在C++里面呀

COPYRIGHT © 2025 小奥的学习笔记. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

陕ICP备19003234号-1

鲁公网安备37120202000100号