- 博客(8)
- 收藏
- 关注
原创 Lec3 Basic Digital Audio Concepts
什么是Digital Audio 我们能听到声音是因为我们的耳朵可以捕捉到声波,digital audio指的是将声波进行数字化,比如将声音按照数字形式进行存储。 Web Audio API 使用web audio api的话,那么可以帮助我们避免处理像-128、127这些比较nasty的值; 在web audio api中,audio的样本值是存储为float的形式,值的范围是+...
2018-09-07 01:27:44 140
原创 Lec2 Multimedia Representation
【Basic Conversion Process】 基本转换过程 analogue multimedia data:比如麦克风的音频信号 经过 analogue to digital converter (ADC) 变成 digital multimedia data:WAV file,JPG file,MP4 file etc. 【Sampling】采样 采样表示使用离散的...
2018-09-06 21:10:00 212
原创 50. Pow(x, n)
Implement pow(x, n), which calculates x raised to the power n (x^n). Example 1: Input: 2.00000, 10 Output: 1024.00000 Example 2: Input: 2.10000, 3 Output: 9.26100 Example 3: Input: 2.00000,...
2018-09-03 17:07:19 200
原创 3. Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer is "abc", which the length is 3. Example 2: ...
2018-08-29 14:38:15 96
原创 143. Reorder List
Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You may not modify the values in the list's nodes, only nodes itself may be changed. Example 1: Given 1->2-...
2018-08-28 16:42:37 104
原创 806. Number of Lines To Write String
We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would cause the width of the line to exceed 100 units, it...
2018-08-28 13:59:54 126
原创 551. 学生出勤纪录 I
给定一个字符串来代表一个学生的出勤纪录,这个纪录仅包含以下三个字符: 'A' : Absent,缺勤 'L' : Late,迟到 'P' : Present,到场 如果一个学生的出勤纪录中不超过一个'A'(缺勤)并且不超过两个连续的'L'(迟到),那么这个学生会被奖赏。 你需要根据这个学生的出勤纪录判断他是否会被奖赏。 示例 1: 输入: "PPALLP" 输出: True 示例...
2018-08-12 00:54:44 84
原创 783. 二叉搜索树结点最小距离
给定一个二叉搜索树的根结点 root, 返回树中任意两节点的差的最小值。 示例: 输入: root = [4,2,6,1,3,null,null] 输出: 1 解释: 注意,root是树结点对象(TreeNode object),而不是数组。 给定的树 [4,2,6,1,3,null,null] 可表示为下图: 4 / \ 2 ...
2018-08-12 00:38:51 369
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人