码迷,mamicode.com
首页 >  
搜索关键字:write back    ( 29084个结果
LeetCode: Subsets [078]
class Solution { public: void dfs(vector<vector >&result, vectorcombination, vector&candidates, int kth, int k, int index2add){ // 当前正在确定组合中的第kth个数,将把候选集candidates中index2add索引位的值作为第kth个数加到组合中 combination.push_back(ca...
分类:其他好文   时间:2014-06-07 01:21:47    阅读次数:220
LeetCode: Search a 2D Matrix [074]
【题目】 Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted from left to right. The first integer of each row is greater than the last integer of the previous ...
分类:其他好文   时间:2014-06-05 08:28:43    阅读次数:321
【Linux驱动】文件描述符以及相关知识
1、文件描述符 Linux操作系统中,几乎所有的设备都被抽象成为设备文件。因此,当我们想对设备进行操作的时候可以直接去操作其相应的设备文件。设备文件即是文件,要想对文件进行操作,无非就是:打开文件、关闭文件、写入数据、读出数据等,它们分别对应的函数有open(),close(),write(),read(),就以其中的open()函数做一个分析。open函数的作用是打开一个文件。 (1)它的定...
分类:系统相关   时间:2014-06-05 06:17:45    阅读次数:389
C++ Primer 学习笔记_89_用于大型程序的工具 --异常处理[续2]
用于大型程序的工具--异常处理[续2]八、自动资源释放 考虑下面函数:void f() { vector v; string s; while (cin >> s) { v.push_back(s); } string *p = new string[v.size()]; //... delete p; } 在正...
分类:编程语言   时间:2014-06-05 06:07:27    阅读次数:393
TCP源码分析--tcp_write_xmit
版本:2.6.33.4 发送端 tcp_write_xmit 函数 /* This routine writes packets to the network. It advances the * send_head. This happens as incoming acks open up the remote * window for us. * * LARGESEND no...
分类:其他好文   时间:2014-06-05 04:15:28    阅读次数:236
每日算法之二十:Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: "((()))", "(()())", "(())()", "()(())", "()()...
分类:其他好文   时间:2014-06-05 02:15:14    阅读次数:262
LeetCode: Search in Rotated Sorted Array II [081]
【题目】 Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the array. 【题意】 在“Search in Rotated Sorted Array”的基...
分类:其他好文   时间:2014-06-03 01:55:38    阅读次数:173
Back Track5学习笔记
1.BT5默认用户名:root.密码:toor(公司是yeslabccies)2.进入图形化界面命令:startx3.更改密码:sudo passwd root扫描工具第一部分网络配置:4.网络配置文件有两个:/etc/network/interfaces和/etc/resolv.conf前一个存放...
分类:其他好文   时间:2014-05-31 08:00:19    阅读次数:685
STL之vector
1.添加 vector 头文件. 1: #include 2: #include 3: 4: using namespace std;2.构造函数 //默认构造函数v1 vector v1; //默认构造函数v1 v1.push_back(1);//在容器的最后添加一个值为t的数据,容器的size变...
分类:其他好文   时间:2014-05-31 07:59:03    阅读次数:235
BP神经网络算法学习
BP(Back Propagation)网络是1986年由Rumelhart和McCelland为首的科学家小组提出,是一种按误差逆传播算法训练的多层前馈网络,是眼下应用最广泛的神经网络模型之中的一个。BP网络能学习和存贮大量的输入-输出模式映射关系,而无需事前揭示描写叙述这样的映射关系的数学方程。...
分类:其他好文   时间:2014-05-31 02:35:02    阅读次数:274
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!