码迷,mamicode.com
首页 >  
搜索关键字:without    ( 3201个结果
DOMContentLoaded vs load
DOMContentLoadedThe DOMContentLoaded event is fired when the document has been completely loaded and parsed, without waiting for stylesheets, images, ...
分类:其他好文   时间:2014-06-27 00:35:05    阅读次数:289
Cygwin安装
①安装包下载:https://cygwin.com/install.html②双击setup-x86.exe③点击下一步,选择Download Without Installing,此选项只下载安装包,不进行安装,后续一起安装④点击下一步,选择安装目录⑤点击下一步,默认选择⑥点击下一步,选择ftp:...
分类:Windows程序   时间:2014-06-26 23:20:40    阅读次数:565
Reorder List
Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For exam...
分类:其他好文   时间:2014-06-26 23:04:14    阅读次数:221
LeetCode: Single Number [136]
【题目】 Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory? 【题意】 给定一个整数数组,其中除了一个数以外,其他数都是成对出现的,...
分类:其他好文   时间:2014-06-26 10:13:27    阅读次数:254
LeetCode 28 Divide Two Integers
Divide two integers without using multiplication, division and mod operator. 思路:1.先将被除数和除数转化为long的非负数,注意一定要为long,因为Integer.MIN_VALUE的绝对值超出了Integer的范围。           2.常理:任何正整数num都可以表示为num=2^a+2^b+2^c+.....
分类:其他好文   时间:2014-06-25 19:46:17    阅读次数:246
Peterson和多线程版本
Peterson's algorithm (AKA Peterson's solution) is a concurrent programming algorithm for mutual exclusion that allows two processes to share a single-use resource without conflict, using only shar...
分类:编程语言   时间:2014-06-25 19:38:19    阅读次数:748
证明tmult_ok的正确性
csapp page124. practice problem 2.35/* Determine whether arguments can be multiplied without overflow */int tmult_ok(int x, int y){ int p = x*y; ...
分类:其他好文   时间:2014-06-25 12:47:24    阅读次数:230
LeetCode——Single Number
Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using e...
分类:其他好文   时间:2014-06-24 23:30:08    阅读次数:278
LeetCode :: Reorder List
Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For example, Given {1,2,3,4}, reorder it t...
分类:其他好文   时间:2014-06-24 21:55:30    阅读次数:279
LeetCode——Single Number II
Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without u...
分类:其他好文   时间:2014-06-24 15:52:58    阅读次数:222
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!