上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 46 下一页

2015年1月14日

java 参数化类型

摘要: 1 package com.gxf.collection; 2 3 import java.util.LinkedList; 4 5 public class TestForT { 6 private LinkedList storage = new LinkedList(); 7 ... 阅读全文

posted @ 2015-01-14 23:42 luckygxf 阅读(836) 评论(0) 推荐(0) 编辑

c++事件内核对象(event)进程间激活(转)

摘要: 源出处:http://blog.csdn.net/richerg85/article/details/7538493此文主要说明的是,c++中创建的一个事件内核对象可以在不同的程序(进程)间共用,也就是说多个程序可以处理同一个事件对象。可以使用此事件对象实现进程间的同步。 关于CreateEv... 阅读全文

posted @ 2015-01-14 16:15 luckygxf 阅读(1139) 评论(0) 推荐(0) 编辑

windows多线程编程(一)(转)

摘要: 源出处:http://www.cnblogs.com/TenosDoIt/archive/2013/04/15/3022036.htmlCreateThread:Windows的API函数(SDK函数的标准形式,直截了当的创建方式,任何场合都可以使用),提供操作系统级别的创建线程的操作,且仅限于工作... 阅读全文

posted @ 2015-01-14 09:26 luckygxf 阅读(249) 评论(0) 推荐(0) 编辑

2015年1月13日

c/c++中主线程退出,子线程也会退出

摘要: 1 #include 2 #include /* _beginthread, _endthread */ 3 #include 4 5 using namespace std; 6 7 void show(void *ptr); 8 9 int main(){10 _begin... 阅读全文

posted @ 2015-01-13 17:17 luckygxf 阅读(2594) 评论(0) 推荐(1) 编辑

2015年1月12日

Sqrt(x)

摘要: Implementint sqrt(int x).Compute and return the square root ofx.参考:http://standalone.iteye.com/blog/1847368参考的是一个用二分查找实现的,这道题还可以用什么牛顿法之类的如果middle * mi... 阅读全文

posted @ 2015-01-12 19:08 luckygxf 阅读(188) 评论(0) 推荐(0) 编辑

Simplify Path

摘要: Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"思路以/为分界符split,如/a/./b/..... 阅读全文

posted @ 2015-01-12 18:15 luckygxf 阅读(203) 评论(0) 推荐(0) 编辑

2015年1月11日

Rotate Image

摘要: You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?我直接开了一个大小相同的数组resul... 阅读全文

posted @ 2015-01-11 14:17 luckygxf 阅读(154) 评论(0) 推荐(0) 编辑

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?题意判... 阅读全文

posted @ 2015-01-11 13:35 luckygxf 阅读(167) 评论(0) 推荐(0) 编辑

Search a 2D Matrix

摘要: Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l... 阅读全文

posted @ 2015-01-11 13:00 luckygxf 阅读(174) 评论(0) 推荐(0) 编辑

Sort Colors

摘要: Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh... 阅读全文

posted @ 2015-01-11 01:11 luckygxf 阅读(170) 评论(0) 推荐(0) 编辑

上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 46 下一页

导航