首页 > 编程语言
Java [leetcode 4] Median of Two Sorted Arrays
问题描述:There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexi...
分类:编程语言   时间:2015-04-25 15:01:44    收藏:0  评论:0  赞:0  阅读:244
Javascript 笔记与总结(2-4)Javascript 内置对象
① String 字符串对象fromCharCode() 静态方法, 用作为参数而传递的字符代码创建一个新的字符串。length 字符串的长度。charAt() 抽取字符串中指定位置的字符。charCodeAt() 返回字符串中指定位置的字符编码。concat() 把一...
分类:编程语言   时间:2015-04-25 14:57:34    收藏:0  评论:0  赞:0  阅读:228
Selenium+Java+TestNG环境配置
1. JDK2.eclipse+TestNG >TestNG安装。 Name:testng Location:http://beust.com/eclipse。如图:3.selenium webdriver Selenium官网下载selenium webdriver jar 包 htt...
分类:编程语言   时间:2015-04-25 14:56:24    收藏:0  评论:0  赞:0  阅读:167
IOC框架之Unity
一、IOC介绍 IOC(Inversion of Control),中文译为控制反转,又称为“依赖注入”(DI =Dependence Injection) IOC的基本概念是:不创建对象,但是描述创建它们的方式。在代码中不直接与对象和服务连接,但在配置文件中描述哪一个组件需要哪一项服务。容器负.....
分类:编程语言   时间:2015-04-25 14:55:24    收藏:0  评论:0  赞:0  阅读:254
Spring下读取properties文件
由于在spring的xml文件中配置了 在这种情况下通过正常的程序去读取Properties文件,会出现读取失败的结果。 例如: Propertiesprop=newProperties();InputStreamin=Object.class.getResourc...
分类:编程语言   时间:2015-04-25 14:54:54    收藏:0  评论:0  赞:0  阅读:250
Java [leetcode 9] Palindrome Number
问题描述:Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are t...
分类:编程语言   时间:2015-04-25 14:53:34    收藏:0  评论:0  赞:0  阅读:165
Java [leetcode 5] Longest Palindromic Substring
问题描述:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique l...
分类:编程语言   时间:2015-04-25 14:53:27    收藏:0  评论:0  赞:0  阅读:210
MFC - 定时关闭一个软件
初学c++,写个小程序玩玩
分类:编程语言   时间:2015-04-25 14:52:54    收藏:0  评论:0  赞:0  阅读:230
多线程编程
何为多线程?在月一个程序当中可能在同一时间运行多个任务,这里的每一个任务都可以称为一个线程,再一起同时运行就是多线程了。例如:当我们去浏览一个网页的时候,在浏览网页的同时也还在加载网页,这就是多线程的体现。 java多线程编程最主要的核心接口和类为:Thread类、Runnable接口、Obj...
分类:编程语言   时间:2015-04-25 14:52:14    收藏:0  评论:0  赞:0  阅读:246
Java [leetcode 8] String to Integer (atoi)
问题描述: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 be...
分类:编程语言   时间:2015-04-25 14:50:24    收藏:0  评论:0  赞:0  阅读:279
linux线程池
typedef struct task_queue { pthread_mutex_t mutex; pthread_cond_t cond; /* when no task, the manager thread wait for ;when a new task come,...
分类:编程语言   时间:2015-04-25 14:49:54    收藏:0  评论:0  赞:0  阅读:271
Java [leetcode 7] Reverse Integer
问题描述:Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321Have you thought about this?Here are some good question...
分类:编程语言   时间:2015-04-25 14:49:34    收藏:0  评论:0  赞:0  阅读:300
Java [leetcode 3] Longest Substring Without Repeating Characters
问题描述:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating lette...
分类:编程语言   时间:2015-04-25 14:49:14    收藏:0  评论:0  赞:0  阅读:136
简单学习Python的web框架Django(一)
我的学习环境是Windows 7,首先安装Python,我安装的版本是Python 2.7,之后需确认“C:\Python27\Scripts;C:\Python27;”这两个路径添加到Path系统变量里面了。 图一 然后下载Django。我下载的版本是Django-1.8.tar.gz。然后解压,...
分类:编程语言   时间:2015-04-25 14:48:54    收藏:0  评论:0  赞:0  阅读:476
Iterator迭代器-ListIterator-Enumeration枚举类接口的特点和区别
Iterator迭代器-ListIterator-Enumeration枚举类接口的特点和区别 1、Iterator的特点:     API中是这样解释的: 对collection进行迭代的迭代器。它取代了Enumeration.迭代器与枚举有两点不同: A.迭代器允许调用者利用定义良好的语义在迭代期间从迭代器所指向的collection移除元素。 B.在方法名上得到了改进。...
分类:编程语言   时间:2015-04-25 13:45:54    收藏:0  评论:0  赞:0  阅读:334
Linux多线程编程小结
Linux进程创建一个新线程时,线程将拥有自己的栈(因为线程有自己的局部变量),但与它的创建者共享全局变量、文件描述符、信号句柄和当前目录状态。 Linux通过fork创建子进程与创建线程之间是有区别的:fork创建出该进程的一份拷贝,这个新进程拥有自己的变量和自己的PID,它的时间调度是独立的,它的执行几乎完全独立于父进程。 进程可以看成一个资源的基本单位,而线程是程序调度的基本单位,一个进程内部的线程之间共享进程获得的时间片。...
分类:编程语言   时间:2015-04-25 13:45:04    收藏:0  评论:0  赞:0  阅读:310
java实现二叉排序树
什么是二叉排序树:二叉排序树或者是一颗空树,或者具有以下性质的二叉树: (1)若它的左子树不为空,则左子树上的所有节点的值都小于他的父节点的值; (2)若它的右子树不为空,则右子树上的所有节点的值都大于他的父节点的值; (3)它的左右子树也分别为二叉排序树; java实例: package com.test.linked; public class HeapSort { publi...
分类:编程语言   时间:2015-04-25 13:44:14    收藏:0  评论:0  赞:0  阅读:249
Python模块导入的多种方式
在python中, 模块即一个后缀名为”.py”文件,python用文件组织一个模块. 模块导入遵循作用域原则, 在什么作用域导入就只能在当前作用域生效. 一个模块只被加载一次,无论导入它多少次. from module import name 是把名字导入到当前的名称空间 单行导入单个模块import json单行导入多个模块import os, sys, time导入指定的模块属性from os...
分类:编程语言   时间:2015-04-25 13:40:59    收藏:0  评论:0  赞:0  阅读:276
Java [leetcode 2] Add Two Numbers
问题描述:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a si...
分类:编程语言   时间:2015-04-25 13:36:34    收藏:0  评论:0  赞:0  阅读:188
javascript学习笔记(二)
一、javascript的放置、注释、输出工具1、输出工具 a、alert();属于window中的全局函数。无论写入什么,都以字符串形式输出。 b、document.write();向网页输出内容。 c、var vlaue=prompt(“显示内容”,“文本框显示内容”)value为返回值;弹出一...
分类:编程语言   时间:2015-04-25 13:34:24    收藏:0  评论:0  赞:0  阅读:238
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!