码迷,mamicode.com
首页 >  
搜索关键字:do it    ( 12356个结果
JavaScript中模块“写法”
在JavaScript模块到底是什么event = function() { // do more return { bind: function() {}, unbind: function() {}, trigger: function() ...
分类:编程语言   时间:2014-06-20 08:50:47    阅读次数:408
socket编程(一):简单回射C/S程序
服务端代码://echoSvr.c#include #include #include #include #include #include #include #include #include #define ERR_EXIT(m) \ do \ { \ perror(...
分类:其他好文   时间:2014-06-11 22:15:11    阅读次数:292
数据挖掘经典算法——K-means算法
算法描述 K-means算法是一种被广泛使用的基于划分的聚类算法,目的是将n个对象会分成k个簇。算法的具体描述如下:随机选取k个对象作为簇中心;Do 计算所有对象到这k个簇中心的距离,将距离最近的归入相应的簇; 重新计算每个簇的中心; 计算准则...
分类:其他好文   时间:2014-06-11 10:37:42    阅读次数:192
ZOJ 1151 Word Reversal反转单词 (string字符串处理)
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=151For each list of words, output a line with each word reversed without changing the or...
分类:其他好文   时间:2014-06-10 00:14:19    阅读次数:300
python 实现二分法查找
二分查找图二叉树:代码#!/usr/bin/python#-*-coding:utf-8-*-#----------------------------------------------------------------------------------------# to_do : bin....
分类:编程语言   时间:2014-06-09 23:06:48    阅读次数:295
[LeetCode] Palindrome Number [13]
题目: Determine whether an integer is a palindrome. Do this without extra space. 解题思路: 判断一个int型整数是不是回文数字,这个题也不难,依次取得数字最高位和最低位进行比较,就可以判断是不是回文数字。需要注意的是负数不是回文数字。 代码实现:...
分类:其他好文   时间:2014-06-08 15:35:48    阅读次数:375
linux用于后台监控指定程序运行状况的脚本(如果程序死了则重启程序)
#!/bin/sh while true do ps | grep "my_app" | grep -v "grep" > /dev/null #第一二个命令输出my_app的运行情况,第二个命令去掉带有grep的条目,然后把结果重定向到null里面不要回显 if [ "$?" -eq 1 ] # 1 : 表示有   ; 0 :表示没有 then ./my_app &...
分类:系统相关   时间:2014-06-08 10:06:03    阅读次数:346
Step by Step Do IOS Swift CoreData Simple Demo
这篇文章记录了在 IOS 中使用 Swift 操作 CoreData 的一些基础性内容,由于缺乏文档,基本上都是自行实验的结果,错漏不可避免,还请谅解。...
分类:移动开发   时间:2014-06-08 04:56:39    阅读次数:419
Leetcode | Rotate Image
You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?实现题。从最外圈顺时针交换,最...
分类:其他好文   时间:2014-06-07 20:33:17    阅读次数:283
leetcode——String to Integer (atoi) 字符串转换为整型数(AC)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:其他好文   时间:2014-06-07 12:21:30    阅读次数:284
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!