- 博客(4)
- 收藏
- 关注
转载 《Programming in Lua 3》读书笔记(二十六)
日期:2014.8.12PartⅣ The C API30 Managing Resources 上一节中实现的自定义类型,我们并没有关注于资源管理的问题。上一节实现的数组是需要关心内存问题,而这些问题由Lua实现管理。但是很多时候事情不那么简单,有些对象不仅需要内存空间,还会需要如窗口句柄、文件描述等资源。尽管说这些也是内存开销,但是这些资源是由系统的其他组...
2019-07-04 11:11:24 678
转载 Find Median from Data Stream
Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value.Examples:[2,3,4], the median i...
2019-07-03 04:35:02 734
转载 汉诺塔算法c++源代码(递归与非递归)[转]
算法介绍: 其实算法非常简单,当盘子的个数为n时,移动的次数应等于2^n - 1(有兴趣的可以自己证明试试看)。后来一位美国学者发现一种出人意料的简单方法,只要轮流进行两步操作就可以了。首先把三根柱子按顺序排成品字型,把所有的圆盘按从大到小的顺序放在柱子A上,根据圆盘的数量确定柱子的排放顺序:若n为偶数,按顺时针方向依次摆放 A B C; 若n为奇数,按顺时针方向...
2019-07-03 00:55:37 878
转载 How do I obtain a Digital Certificate from my Certificate Authority (CA)?
How do I obtain a Digital Certificate from my Certificate Authority (CA)? This article will describe the 2 most popular methods for obtaining a Digital Certificate from your online Certificate Autho...
2019-07-02 22:54:49 459
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人