小奥的学习笔记

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

[leetcode]题目解析(190425)

Remove Duplicates from sorted Array II 题目描述 Follow up for "Remove Duplicates": What if duplicates are allowed at most twice?For example, Given sorted array A =[1,1,1,2,2,3],Your function should return length =5, and A is now[1,1,2,2,3]. 题目解析 类似于Remove Duplicat…

2019年5月13日 0条评论 914点热度 0人点赞 davidcheung 阅读全文
Leetcode

[leetcode]题目解析(190423)

Remove duplicates from sorted list 题目描述 Given a sorted linked list, delete all duplicates such that each element appear only once.For example, Given1->1->2, return1->2. Given1->1->2->3->3, return1->2->3.(保留1个) 题目解析 对于当前节点和下一节点的值不相等的情况,那就一直往下走,代码中是p1移动到下一个节点的操作…

2019年4月23日 0条评论 884点热度 0人点赞 davidcheung 阅读全文
Leetcode

[leetcode]题目解析(190422)

unique path 题目描述 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish…

2019年4月22日 0条评论 1024点热度 0人点赞 davidcheung 阅读全文
Algorithm

最大堆和最小堆

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

2019年4月19日 0条评论 784点热度 0人点赞 davidcheung 阅读全文
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条评论 1142点热度 0人点赞 davidcheung 阅读全文
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条评论 975点热度 0人点赞 davidcheung 阅读全文
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条评论 975点热度 0人点赞 davidcheung 阅读全文
1…7891011…32
搜索
欢迎关注我的个人公众号
最新 热点 随机
最新 热点 随机
DEEPFILTERNET:一种基于深度滤波的全频带音频低复杂度语音增强框架 奥地利匈牙利九日游旅程 论文阅读之Study of the General Kalman Filter for Echo Cancellation 小奥看房之鸿荣源珈誉府 杭州往返旅途及西溪喜来登和万怡的体验报告 2022年的第一篇碎碎念
奥地利匈牙利九日游旅程DEEPFILTERNET:一种基于深度滤波的全频带音频低复杂度语音增强框架
新青年报[New Youth]第三期发布! Ultraman China第四话——《Shine的名字》(あのウルトラマンの第4話を調べます) day7练习2:使用管道实现兄弟进程间通信 [leetcode]题目解析(190524) 随机漫步模型之python实现 算法笔记之分支限界法(2)
标签聚合
Python linux 学习 算法 鸟哥的linux私房菜 leetcode python学习 生活 Java 高中
最近评论
davidcheung 发布于 5 个月前(02月09日) The problem has been fixed. May I ask if you can s...
tk88 发布于 5 个月前(02月07日) Hmm is anyone else having problems with the pictur...
cuicui 发布于 9 个月前(10月20日) :wink:
niming 发布于 10 个月前(09月19日) 同级校友,能刷到太巧了
davidcheung 发布于 2 年前(08月16日) 我得找一下我之前整理的word文档看一下,如果找到了我就更新一下这篇文章。
Nolan 发布于 2 年前(07月25日) 您的笔记非常有帮助。贴图不显示了,可以更新一下吗?
davidcheung 发布于 3 年前(06月19日) 到没有看webrtc的代码。现在主要在看我们公司的代码了。。。只是偶尔看一看webrtc的东西。。。
aobai 发布于 3 年前(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号