注意,这里只是给出一个总结,具体性能需要根据实际环境和需要来确定 霸爷指出,新的erlang虚拟机有很多调优启动参数,今后现在这个方面深挖一下。 1. 进程标志设置: 消息和binary内存:erlang:process_flag(min_bin_vheap_size, 1024*1024),减少大 ...
分类:
其他好文 时间:
2017-07-20 15:11:26
阅读次数:
154
题目: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the neare ...
分类:
编程语言 时间:
2017-07-19 23:38:07
阅读次数:
317
一、 题目 给一个二叉树。中序遍历这个树,输出得到的值 二、 分析 这道题前面见到了,多次隔过去了,今天最终面对了,当时是没有好的思路。自习想想越是太难。Leetcode上的题,递归是统法啊! 方法一:递归 1. 开辟数组,递归左节点 2. 将中间结点放入数组 3. 递归有节点 方法二:使用数组和栈 ...
分类:
其他好文 时间:
2017-07-19 23:25:36
阅读次数:
186
今天恶补汇编,发下脑袋变迟钝了,所以写了个小程序,练习一下二进制转换,巩固记忆~~ 先来看看二进制(Binary)、十进制(Decimal)、十六进制(Binary)的关系表格 根据对应关系,写了如下小代码,亦可以统计成功率 ...
分类:
其他好文 时间:
2017-07-19 01:16:06
阅读次数:
311
缩进出现问题,运行不出来。 正确代码如下: 1 def binary_search(list, item): 2 low = 0 3 high = len(list)-1 4 5 while low <= high: 6 mid = (low + high) 7 guess = list[mid] ...
分类:
编程语言 时间:
2017-07-19 01:07:36
阅读次数:
230
题目: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). ...
分类:
编程语言 时间:
2017-07-18 16:53:43
阅读次数:
224
Binary Search algorithm. Wikipedia definition: In computer science, binary search, also known as half-interval search, logarithmic search, or binary c ...
分类:
其他好文 时间:
2017-07-18 15:27:35
阅读次数:
153
本文转载自:https://www.crifan.com/order_eabi_and_oabi/ 1。什么是ABIABI,application binary interface (ABI),应用程序二进制接口。既然是 接口,那就是某两种东西之间的沟通桥梁,此处有这些种情况:A。应用程序 <-> ...
分类:
其他好文 时间:
2017-07-18 13:41:34
阅读次数:
196
发现由于角的度数和边的长度有限制,那俩圆如果放得下的话,必然是塞在两个角里。 于是预处理n个圆心的位置(注意要判断那个圆会不会和其他的边界相交),然后n^2枚举俩角即可。 ...
分类:
其他好文 时间:
2017-07-18 09:58:52
阅读次数:
260
Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), retur ...
分类:
其他好文 时间:
2017-07-18 01:30:06
阅读次数:
171