码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
Notes on learning c++: chapter 0
chapter 0 0.2 program(application or software): a set of instructions; machine code(machine language or instruction set): limited set of instructions ...
分类:编程语言   时间:2018-01-21 22:39:17    阅读次数:209
Mac中wireshark如何抓取HTTPS流量?
概述 某些场景下,我们需要分析网站https流量,chrome提供的DevTools工具在页面跳转时无法查看之前的请求。 使用wireshark能够全量抓取整个流程,本文主要是将网上查询到的资料整理,以便日后查阅。 步骤 以 为例,mac中详细操作如下: 1. 查找浏览器 可以找到binary所在路 ...
分类:Web程序   时间:2018-01-21 11:11:38    阅读次数:305
Codeforces 916B - Jamie and Binary Sequence (changed after round)
思路: 先取出二进制的每一位,判断总个数是不是小于等于k,如果大于k则不能构成。 通过观察可以发现,每一位的一个可以转换成下一位的两个,因为要使最大位尽可能小,所以如果这一位的所有的个数都可以转换成下一位那么就全部转换过去,如果不能就一个也不要转换,不然会导致字典序损失。 然后从最小的位开始转换,每 ...
分类:其他好文   时间:2018-01-20 15:03:16    阅读次数:183
【Codeforces Round #457 (Div. 2) B】Jamie and Binary Sequence
【链接】 "我是链接,点我呀:)" 【题意】 在这里输入题意 【题解】 把n分解成二进制的形式。 n=2^a0+2^a1+...+2^a[q 1] 则固定就是长度为q的序列。 要想扩展为长为k的序列。 可以把2^x转化为2^(x 1)+2^(x 1)的形式. 这样序列的长度就+1了 它要求max{a ...
分类:其他好文   时间:2018-01-20 11:10:56    阅读次数:205
探索Skip List (跳跃表)
附William Pugh的论文 "《Skip Lists: A Probabilistic Alternative to Balanced Trees》" 写在前面 以下内容针对的是Skip List的插入和删除,建议你先到其他地方大概了解一下Skip List长什么样子的,然后再过来看看这篇,最 ...
分类:其他好文   时间:2018-01-19 23:21:10    阅读次数:203
[LeetCode] Find Bottom Left Tree Value
Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Example 2: Note: You may assume the tree (i.e., the given root no ...
分类:其他好文   时间:2018-01-19 15:37:07    阅读次数:136
[LeetCode] Counting Bits
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r ...
分类:其他好文   时间:2018-01-18 15:01:37    阅读次数:118
lintcode 11. 二叉查找树中搜索区间
这个题目也是挺简单的,不过这里用到了对vector的排序。 会发现是直接传入开头和结尾的,然后进一步去了解一下其中的原理: vector采用的数据结构很简单:线性的连续空间。 它以两个迭代器start和finish分别指向配置得来的连续空间中目前已经被使用的空间。迭代器end_of_storage指 ...
分类:其他好文   时间:2018-01-18 13:36:58    阅读次数:125
Python验证码识别 安装Pillow、tesseract-ocr与pytesseract模块的安装以及错误解决
1.安装Pillow 2.安装tesseract-ocr github地址: https://github.com/tesseract-ocr/tesseract You can either Install Tesseract via pre-built binary package or bui ...
分类:编程语言   时间:2018-01-17 00:50:51    阅读次数:185
Linux kernel rbtree
Linux kernel rbtree 因编写内核模块时需要用到rbtree来记录异步request,研究分析了一下kernel rbtree的使用方法,记录于此。本文主要参考了内核文档 "rbtree.txt" rbtree简介 Red black trees(rbtree)是一种自平衡的二叉搜索 ...
分类:系统相关   时间:2018-01-17 00:09:56    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!