单例设计模式几种实现 (测试所用jdk版本1.8.0_20)第一种: 1 public final class SingleInstance1 { 2 3 private static volatile SingleInstance1 singleInstance = null; 4 ...
分类:
其他 时间:
2015-10-06 12:50:56
收藏:
0 评论:
0 赞:
0 阅读:
228
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:
其他 时间:
2015-10-06 12:50:15
收藏:
0 评论:
0 赞:
0 阅读:
218
前段时间决定将自己用了三年多的Lumia 800正式退役,这是我用的时间最长的手机,虽然系统上有缺陷,但是好不妨碍他成为我最有感情的一部手机。由于之前是WinPhone 开发者的关系,这部手机是微软送的,眼睁睁的看着WinPhone系统从出生到长大,还没成熟时就蔫了的历程,心里很不是滋味。这篇文章先...
分类:
其他 时间:
2015-10-06 12:49:46
收藏:
0 评论:
0 赞:
0 阅读:
196
题目大意N个节点构成一棵树形结构,在其中若干个节点上放置士兵,与被放置士兵的节点相连的边会被士兵看守。问需要至少在多少个节点上放置士兵,才能使得N-1条边都被看守。题目分析题目描述的结构为树形,且最优化问题,可以考虑使用树形动态规划来解决。将结构按照树根在上,树叶在下的结构进行排列,为了保证无后效性...
分类:
其他 时间:
2015-10-06 12:49:05
收藏:
0 评论:
0 赞:
0 阅读:
296
- (void)viewDidLoad { [super viewDidLoad]; // NSString *string = @"[cry][hei][smile],https://www.baidu.com 巴啦啦啦啦";//// CGRect rect =[TQRic...
分类:
其他 时间:
2015-10-06 12:48:35
收藏:
0 评论:
0 赞:
0 阅读:
393
using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Cons...
分类:
其他 时间:
2015-10-06 12:48:15
收藏:
0 评论:
0 赞:
0 阅读:
221
在我们平常浏览网页是经常要对网页类容进行一些操作处理,如复制,翻译,搜索,打印打印等,今天我们就学习下如何在Firefox中我们如何通过附加组件实现这些操作。开发步骤1.终端窗口运行以下命令创建项目contextMenumkdir contextMenucd contextMenucfx init2...
分类:
其他 时间:
2015-10-06 12:47:45
收藏:
0 评论:
0 赞:
0 阅读:
231
开头:On contemporary society(一般的背景)/ With the advent of the technologically advanced society (the information explosive era(与科技有关的背景))/ On account of …,...
分类:
其他 时间:
2015-10-06 12:47:25
收藏:
0 评论:
0 赞:
0 阅读:
258
Balanced Binary TreeGiven a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tre...
分类:
其他 时间:
2015-10-06 12:47:15
收藏:
0 评论:
0 赞:
0 阅读:
239
Vector Calculus, by Paul C, Matthews
分类:
其他 时间:
2015-10-06 12:47:06
收藏:
0 评论:
0 赞:
0 阅读:
201
1. 准备工作 apt-get install gettext horizon源码下载路径 /workspace/horizon/ 2. 生成mo文件 django-admin.py makemessages -l zh_CN django-admin.py compilemessages 可以看到...
分类:
其他 时间:
2015-10-06 12:45:45
收藏:
0 评论:
0 赞:
0 阅读:
111
http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.htmlhttp://www.intel.com/content/dam/www/public/us/en/docum...
分类:
其他 时间:
2015-10-06 12:45:35
收藏:
0 评论:
0 赞:
0 阅读:
222
---恢复内容开始---编写代码之前首先建立了两个窗口。然后把需要的控件拖到窗口里面。接着进入控制台应用程序并开始编写代码。代码如下.using System;using System.Collections.Generic;using System.Ling;using System.Text;n...
分类:
其他 时间:
2015-10-06 12:45:25
收藏:
0 评论:
0 赞:
0 阅读:
176
/** 随机短语生成机*/public class Pharse {public static void main(String[] args) {//可随意添加字符String[] wordListOne = {"三","组","的","我","哦","热","耳","低","安"};String...
分类:
其他 时间:
2015-10-06 12:45:06
收藏:
0 评论:
0 赞:
0 阅读:
110
前置声明 = Forward Declaration 对于一个刚刚接触include写法的童鞋来说, 突然看到很多人用如下写法:不知甚解否? #ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
//! [前置声明]
QT_BEGIN_NAMESPAC...
分类:
其他 时间:
2015-10-06 11:43:06
收藏:
0 评论:
0 赞:
0 阅读:
243
本文内容 application/x-www-form-urlencoded multipart/form-data application/json text/xml HTTP/1.1 协议规定的 HTTP 请求方法有 OPTIONS、GET、HEAD、POST、PU...
分类:
其他 时间:
2015-10-06 11:40:46
收藏:
0 评论:
0 赞:
0 阅读:
209
结合上次提到的velocity的UI Pack存在一下问题:动画名称过长,语意性差使用UI Pack的动画,loop属性会失效无法监听动画完成时机 我这里想到了一种解决思路:动画名称过长,语意性差?这个问题很好解决,生成一些简单、易懂,并且大家都在用的动画名称,我这里主要参考了animati...
分类:
其他 时间:
2015-10-06 11:40:25
收藏:
0 评论:
0 赞:
0 阅读:
280
Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For exa...
分类:
其他 时间:
2015-10-06 11:40:06
收藏:
0 评论:
0 赞:
0 阅读:
179
打开Git Bash,生成ssh密钥:ssh-keygen -t rsa -C "your_email@youremail.com"
分类:
其他 时间:
2015-10-06 11:39:56
收藏:
0 评论:
0 赞:
0 阅读:
430
1,drawable转bitmap// 获取待处理的图像BitmapDrawable tmpBitDra = (BitmapDrawable) getResources().getDrawable(R.drawable.ic_launcher);Bitmap tmpBit = tmpBitDra.g...
分类:
其他 时间:
2015-10-06 11:39:25
收藏:
0 评论:
0 赞:
0 阅读:
189