码迷,mamicode.com
首页 >  
搜索关键字:Once    ( 2791个结果
LeetCode:Remove Duplicates from Sorted Array
题目描述: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in...
分类:其他好文   时间:2014-11-04 09:20:30    阅读次数:137
共享内存生产者消费者
ipc.h#pragma once#ifndef _ipc_h#define _ipc_h#include #include #include #include #include #include #include#define BUFSZ 256//建立或获取ipc 的一组函数的原型说明int P...
分类:其他好文   时间:2014-11-04 06:43:46    阅读次数:214
通达OA 新旧两种数据库连接方式
老的连接方式: include_once("/inc/conn.php"); $cursor = exequery($connection,$query); 新的连接方式: include_once("/inc/utility_all.php"); $cursor = exequery(TD::conn(),$query);...
分类:数据库   时间:2014-11-03 14:41:32    阅读次数:162
实现一个简单的事件订阅通知机制(Observer模式实现)
//Base_Event.h#pragma once#include enum Event_Type //事件类型{ NET_REFRESH, //网络环境改变事件 MSG_REFRESH, //消息改变事件 UI_REFRESH, //UI界面更新事件 MAX_EVENT...
分类:其他好文   时间:2014-11-02 13:49:08    阅读次数:268
c/c++常用代码 -- 共享内存
#pragma once#include #include #include #include template class CMySM{public: CMySM() { m_pMem = NULL; m_hMem = NULL; } ~CMyS...
分类:编程语言   时间:2014-11-02 00:24:48    阅读次数:228
HDU 5037 FROG (贪心)
Problem Description Once upon a time, there is a little frog called Matt. One day, he came to a river. The river could be considered as an axis.Matt is standing on the left bank now (at position...
分类:其他好文   时间:2014-10-30 21:03:53    阅读次数:147
POJ1942——Paths on a Grid(组合数学)
Paths on a GridDescriptionImagine you are attending your math lesson at school. Once again, you are bored because your teacher tells things that you a...
分类:其他好文   时间:2014-10-29 21:20:03    阅读次数:148
LeetCode Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 输入排序过的链表,删除相同的元素。 ...
分类:其他好文   时间:2014-10-29 15:02:12    阅读次数:178
Install PhoneGap
To Install, ensure that you have NodeJS installed, then open your commandline and run the following:$ sudo npm install -g phonegap Once ins...
分类:其他好文   时间:2014-10-28 17:21:52    阅读次数:183
LeetCode:Remove Duplicates from Sorted List
问题描述: Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 思路:遍历链表,通过两个指针...
分类:其他好文   时间:2014-10-28 12:12:23    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!