码迷,mamicode.com
首页 >  
搜索关键字:return 设置样式 获取样式    ( 61336个结果
two sum
Question 1: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...
分类:其他好文   时间:2014-05-19 09:35:41    阅读次数:321
js去除左右空格
function yanzheng(val) { return val.replace(/(^\s*)|(\s*$)/g, ""); }function Inputchecking() { var account = document.getElementById("txt_ACCOUNT");.....
分类:Web程序   时间:2014-05-19 09:23:56    阅读次数:237
Leetcode | Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head.For example,Given linked list: 1->2->3->4->5, and n = 2.After removi...
分类:其他好文   时间:2014-05-19 09:16:49    阅读次数:247
快速排序
void quickSort(int *a1 , int *a2){ int i=0 , j=a2-a1-1; if (i>=j) return; swap(a1[0] , a1[rand()%j+1]); while( ia1[0]) --j; if(i<j)...
分类:其他好文   时间:2014-05-19 07:43:47    阅读次数:213
hello cnblogs!
#include int main(void){ printf("hello cnblogs!\n"); return 0;}
分类:其他好文   时间:2014-05-18 19:50:02    阅读次数:245
Golang(笔记) 面向对象
package main import ("fmt")//对象定义type Rect struct{x,y float64width ,height float64} //对象方法实现func (r *Rect) Area()float64{return r.width*r.height}//Go语...
分类:其他好文   时间:2014-05-18 19:36:55    阅读次数:405
有这样的事?
#include #include #include #include #include #include int init_win_socket(){ WSADATA wsaData; if(WSAStartup(MAKEWORD(2,2) , &wsaData) != 0) { return -...
分类:其他好文   时间:2014-05-18 18:57:26    阅读次数:245
关于==操作符重载
今天看资料时看到这样一段代码,记录下 public static bool operator ==(EntityBase entity1, EntityBase entity2) { if ((object)entity1 == null && (o...
分类:其他好文   时间:2014-05-18 18:51:59    阅读次数:209
二分查找 变形
#includeint solver(const int a[],const int n,const int t){ int total = 0; if (NULL == a && 0 >= n) return total; int start = 0; int end = n-1...
分类:其他好文   时间:2014-05-18 18:51:03    阅读次数:175
JS Format函数
//扩展方法$.GM.Format = function (source, params) { if (arguments.length == 1) return function () { var args = $.makeArra...
分类:Web程序   时间:2014-05-17 21:49:16    阅读次数:333
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!