码迷,mamicode.com
首页 >  
搜索关键字:up    ( 7825个结果)
linux常用的锁及信号量的提取
1.信号量( 两个进程之间同步) struct semaphore power_sem; sema_init(&pdata->power_sem,1); down(&pdata->power_sem); up(&pdata->power_sem); 2.互斥量 struct mutex led_mutex; mutex_init(&led_mutex); m...
分类:系统相关   时间:2015-03-16 19:23:15    阅读次数:237
A1008. Elevator (20)
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev...
分类:其他好文   时间:2015-03-16 19:14:59    阅读次数:108
samba server on Mac OS X Lion Server
一般Mac共享通过配置wins,smb即可实现。注意在同一个工作组!参考:http://computers.tutsplus.com/tutorials/how-to-set-up-an-smb-server-in-os-x-and-windows-8--mac-46276无奈配置后,各种折腾,xp...
分类:系统相关   时间:2015-03-16 17:44:34    阅读次数:305
企业存储架构选Scale-up还是Scale-out?
过去20年的数据交付中,在企业环境中集中使用的是统一存储基础架构。这些架构采用了大规模的SAN和NAS产品,具有较高的弹性和可用性,能够扩展到TB级,甚至能够扩展到更高的PB级存储。   毫无疑问的是如今这些...
分类:其他好文   时间:2015-03-16 14:42:24    阅读次数:170
[LeetCode] Set Matrix Zeroes 矩阵赋零
Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space?A s...
分类:其他好文   时间:2015-03-16 14:26:38    阅读次数:105
Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?思路:...
分类:其他好文   时间:2015-03-16 12:38:20    阅读次数:95
Display Screen as a Timer
Using up-clock can change your screen as a Timer, as following: Ubuntu 14.04及相应衍生版本用户可安装,打开终端,输入以下命令: sudo?add-apt-repository?ppa:apandada1/up-clock sudo?apt-get?updat...
分类:其他好文   时间:2015-03-16 11:18:29    阅读次数:126
LeetCode --- 63. Unique Paths II
题目链接:Unique Paths II Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 resp...
分类:其他好文   时间:2015-03-15 23:43:50    阅读次数:310
CodeForces462 A. Appleman and Easy Task
A. Appleman and Easy Tasktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputToastman came up with a ...
分类:移动开发   时间:2015-03-15 22:34:59    阅读次数:178
LeetCode 1:two sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2015-03-15 19:48:26    阅读次数:128
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!