[leetcode]LeetCode刷题的日子--longest common prefix

2020-05-19
阅读 1 分钟
1.4k
Write a function to find the longest common prefix string amongst an array of strings.

[leetcode]LeetCode刷题的日子--罗马数字转整数

2020-05-19
阅读 2 分钟
1.2k
例如, 罗马数字 2 写做 II ,即为两个并列的 1。12 写做 XII ,即为 X + II 。 27 写做  XXVII, 即为 XX + V + II 。

[leetcode]LeetCode刷题的日子--integer to roman

2020-05-19
阅读 2 分钟
1.3k
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.

[leetcode]LeetCode刷题的日子--Container With Most Water

2020-05-19
阅读 1 分钟
1.5k
Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most w...

[leetcode]LeetCode刷题的日子--Regular Expression Matching

2020-05-19
阅读 3 分钟
1.4k
题目Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.

[leetcode] LeetCode刷题的日子--Palindrome Number

2020-05-19
阅读 1 分钟
1.4k
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.

[leetcode]LeetCode刷题的日子--atoi

2020-05-19
阅读 3 分钟
1.1k
The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this character, takes an optional initial plus or minus sign followed by as many numerical digits as possible, and interprets them as a numerical value.

[leetcode]LeetCode刷题的日子--Reverse Integer

2020-05-19
阅读 1 分钟
1.2k
简单题,迅速过 题目: Given a 32-bit signed integer, reverse digits of an integer. Example 1: {代码...} Example 2: {代码...} Example 3: {代码...} 题目翻译: 倒置一个int数即可,注意越界 解题思路: 略 代码: {代码...}

[leetcode]LeetCode刷题的日子--ZigZag Conversion

2020-05-19
阅读 2 分钟
1.1k
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)

[leetcode]LeetCode刷题的日子--Longest Palindromic Substring

2020-05-19
阅读 1 分钟
1.1k
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.

[leetcode]LeetCode刷题的日子--Median of Two Sorted Arrays

2020-05-18
阅读 2 分钟
1.1k
There are two sorted arrays nums1 and nums2 of size m and n respectively.

[leetcode]LeetCode刷题的日子--Longest Substring Without Repeating

2020-05-18
阅读 2 分钟
1k
Given a string, find the length of the longest substring without repeating characters.

[leetcode]LeetCode刷题的日子--Add Two Numbers

2020-05-16
阅读 3 分钟
1.5k
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.

[leetcode]LeetCode刷题的日子--起始篇

2020-05-16
阅读 2 分钟
957
前几天有幸在朋友的推荐下,面了一次巨硬。在丹棱街5号楼的17层会议室中,连续加班了两个月,每天平均睡五个小时的我,被几道算法题完全难住了。当时浆糊般的脑子里,只剩下了孤零零的递归想法,甚至连前几天才用过的std::priority_queue都完全想不起来了,只能傻乎乎的用std::sort完成。

[基础算法]B树

2020-04-07
阅读 2 分钟
927
每一个非叶子的节点(不包括根节点),都最少拥有m/2个子节点。 (Every non-leaf node (except root) has at least ⌈m/2⌉ child nodes)

[基础算法]算法相关-排序

2020-04-06
阅读 3 分钟
1.1k
算法系列--各种排序 算法系列,也算是一个总结 + 复习的系列了。因为最近看的《算法(第四版)》就是从排序开始讲起的,那我也有学有样从排序开始写起了。 选择排序 {代码...} 插入排序 {代码...} 希尔排序 {代码...} 归并排序 自顶向下的归并排序 {代码...} 自底向上 {代码...} 快速排序 {代码...}

[C++]C++ 对象模型

2020-04-05
阅读 5 分钟
1.4k
好久之前,就购买了《深度探索C++对象模型》这本书,刚入手时,翻看了好久,觉得受益匪浅。最近发现,这本书中的知识,在脑海中,已经变得很不清晰了,本着好记性不如烂笔头的传统,打算用一段时间,把其中比较重要,尤其是在实际工作中,真的会使用到的知识,做一番整理。今天开始第一篇,系统介绍下C++ 对象模型。

[流媒体]ijkplayer 播放器,android平台使用说明

2019-01-23
阅读 7 分钟
8.5k
ijkplayer github 地址 ijkplayer 编译 编译可以参考官方说明 简要步骤说明: 将代码下载到本地 {代码...} 设定ndk环境 下载对应平台的ndk工具包,官网地址 设置ndk的编译环境,因为我使用的是mac,就直接 {代码...} 初始化ijkplayer为android编译环境 {代码...} 编译ffmpeg之前准备因为ijkplayer还是依赖于ffmpeg的一些...

[基础算法]base64简介

2019-01-23
阅读 2 分钟
1.3k
base 64编码可以将任意一组字节转换为较长的常见文本字符序列,从而可以合法地作为首部字段值。base 64编码将用户输入或二进制数据,打包成一种安全格式,将其作为HTTP首部字段的值发送出去,而无须担心其中包含会破坏HTTP分析程序的冒号、换行符或二进制值。

[流媒体]Android 播放HLS/RTSP的原生类库 MediaPlayer

2019-01-23
阅读 7 分钟
5.5k
之前做过一些关于android播放器的开发工作,当时懵懂无知,只知道一个ffmpeg,然后就费劲巴拉的用ndk把ffmpeg编译了,然后又自己封装了个库调用,那个过程可以看看这篇文章,然后我这里也有一个编译好的库,可以拿来用。

[流媒体]通读SRS后的总结文档以及搭建直播平台的初次尝试

2016-01-27
阅读 6 分钟
15.2k
“SRS定位是运营级的互联网直播服务器集群,追求更好的概念完整性和最简单实现的代码。”—winlin                        通读了simple rtmp server的2.0release 版本的wiki。从整体上,对simple rtmp server有了比较全面的认识,也根据wiki中的介绍,将simple rtmp server的一些demo跑通,体验了一下SRS部署的简单快速,...