程序片段
xiewenbo
互联网广告行业呆过几年,旅游公司呆过几年,对机器学习,自然语言处理,图像识别,个性化推荐 有兴趣
展开
-
Map 遍历
package com.test.refference;import java.util.HashMap;import java.util.Iterator;import java.util.Map;import java.util.Map.Entry;import java.util.Set;class Person{private String us转载 2012-04-11 15:38:45 · 373 阅读 · 0 评论 -
【C/C++】反转链表
【C/C++】反转单链表原创 2014-06-26 09:47:05 · 733 阅读 · 0 评论 -
【JAVA】BinarySearch
二分查找JAVA实现原创 2014-06-25 14:50:31 · 1073 阅读 · 0 评论 -
【JAVA】for,foreach遍历数组时候一些区别
【JAVA】for,foreach遍历数组时候一些区别原创 2014-06-26 16:42:07 · 3102 阅读 · 0 评论 -
【JAVA】merge two array by order
merge two array by order原创 2014-06-25 10:35:16 · 998 阅读 · 0 评论 -
【C/C++】merge two array by order
#include "stdio.h"void show(int a[],int len) { int i; for (i = 0; i < len; i++) { printf("%d-", a[i]); } printf("\n");}void merge(int arr1[], int arr2[], int res[]) { printf("before merge:\n原创 2014-06-25 10:31:53 · 586 阅读 · 0 评论 -
javafx dragable node
/* * Handling mouse events with event filters */package draggablepanelsexample;import javafx.application.Application;import javafx.beans.binding.Bindings;import javafx.beans.property.B转载 2014-01-15 16:28:09 · 821 阅读 · 0 评论 -
java io
import java.io.IOException;import java.net.InetSocketAddress;import java.nio.ByteBuffer;import java.nio.channels.AsynchronousChannelGroup;import java.nio.channels.AsynchronousServerSocketChann转载 2013-05-28 20:27:03 · 577 阅读 · 0 评论 -
JDK ThreadPool
import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;class MyTask implements Runnable{@Overridepublic void run() {// TODO Auto-generated method stubtry {转载 2012-04-11 15:59:49 · 529 阅读 · 0 评论 -
mutiThread Callable
import java.util.ArrayList;import java.util.Date;import java.util.List;import java.util.concurrent.Callable;import java.util.concurrent.ExecutionException;import java.util.concurrent.Executo转载 2012-04-11 16:06:27 · 500 阅读 · 0 评论 -
非递归方式遍历树(先序,中序,后序)
import java.util.Stack;import java.util.concurrent.LinkedBlockingDeque;public class TreeTraversal { public Node createTree() throws InterruptedException{ LinkedBlockingDeque<Node> queue ...原创 2019-06-18 20:22:21 · 161 阅读 · 0 评论