码迷,mamicode.com
首页 >  
搜索关键字:space    ( 18273个结果
Length of Last Word
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:其他好文   时间:2014-11-04 12:24:53    阅读次数:187
[LeetCode] 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?思路:...
分类:其他好文   时间:2014-11-04 10:40:26    阅读次数:143
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
带package的java编译与不带package的java编译
转自:http://www.biostatistic.net/home.php?mod=space&uid=12734&do=blog&id=1952大赞博主!解决了困扰了好几天的问题java中不带package的程序和带package的程序编译的方式是不同的。一、不带package的程序建立个He...
分类:编程语言   时间:2014-11-04 01:28:00    阅读次数:259
Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.要求是不能使用额外的空间,言下之意就是不能先转化成字符串来进行处理,所以得想另外一种办法。额外考虑:负数属于回文数字?思路:直接来截取最低位和最高位来进...
分类:其他好文   时间:2014-11-03 22:26:57    阅读次数:246
[LeetCode] Linked List Cycle
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?思路:快慢指针的应用。快慢指针指的是移动的步长,即每次向前移动的快慢。例如可以让快指...
分类:其他好文   时间:2014-11-03 20:42:18    阅读次数:204
数据挖掘算法Analysis Services-基于SQL Server的数据挖掘
数据挖掘算法(Analysis Services – 数据挖掘)data mining algorithm is a set of heuristics and calculations that creates a data mining model from data.” xml:space=”...
分类:数据库   时间:2014-11-03 19:09:25    阅读次数:262
URAL - 1966 - Cycling Roads(并查集 + 判线段相交)
题意:n 个点,m 条边(1 ≤ m 题目链接:http://acm.timus.ru/problem.aspx?space=1&num=1966 ——>>对于每条边,边上的两端点并入集合,枚举边与边,判断他们是否相交,是的话各点并入集合,最后看集合内元素的个数是否为n。。 #include #include const int MAXN = 200 + 10; const doub...
分类:其他好文   时间:2014-11-03 06:45:54    阅读次数:314
daemon函数的原理及使用详解
在linux系统下创建守护进程的原理及步骤在文章(链接如下)中介绍过。http://blog168.chinaunix.net/space.php?uid=20196318&do=blog&id=28738其实,linux提供了daemon函数用于创建守护进程,实现原理与上文中介绍的是一样的。#in...
分类:其他好文   时间:2014-11-02 23:53:23    阅读次数:202
PAT 1031 Hello World for U
#include #include #include using namespace std;char line[82];char space[82];int main() { scanf("%s", line); int len = strlen(line); int side_...
分类:其他好文   时间:2014-11-02 21:00:48    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!