Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:
其他 时间:
2015-01-07 23:38:24
收藏:
0 评论:
0 赞:
0 阅读:
433
无论头上是怎样的天空,我准备承受任何风暴。——拜伦
本讲内容:坦克3.0版(面向对象的思想)
要求:画出我方坦克会动并且会发射子弹、画出敌人坦克
一、同一个包下建二个文件分别为:MyTankGame、Members(负责其它成员譬如:制造坦克、子弹等)
MyTankGame类
/**
* 功能:坦克游戏的3.0版本
* 1:画出坦克
* ...
分类:
其他 时间:
2015-01-07 23:38:14
收藏:
0 评论:
0 赞:
0 阅读:
517
敲三层的时候就听师傅说过泛型,只不过当时没有特别的注意。当敲用户登录窗体时,我遇到这样的问题,就是我们需要经过验证输入的信息的正误之后才能登录或者不能登录。判断时,需要返回我们从数据库中查到的信息,那么问题就来了,如何返回呢?
一开始我一直用的是DataTable返回数据的,但是当去判断的时候我不知道如何下手了,按照以往的经验,我们可以使用table.rows()或table.fie...
分类:
其他 时间:
2015-01-07 23:37:54
收藏:
0 评论:
0 赞:
0 阅读:
652
1.1. JPA 是什么
JavaPersistence API,用于对象持久化的API,是Java EE 5.0 平台标准的 ORM 规范,使得应用程序以统一的方式访问持久层。
JPA 是EJB3 EntityBean,是一套从EJB3.0核心标准中分离出来的独立的标准文档,J2EE 4规范中最为人所熟悉的用来处理数据持久的Entity Bean,在Java EE5中被推到重来...
分类:
其他 时间:
2015-01-07 23:37:44
收藏:
0 评论:
0 赞:
0 阅读:
494
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time
complexity should be O(log (m+n)).
分析
这是一道非常经典的题。这题更通用的形式是,给定两个已经排序...
分类:
其他 时间:
2015-01-07 23:37:34
收藏:
0 评论:
0 赞:
0 阅读:
688
题目是 小明迷路了,求出他的方位,具体的题目没了,所以没有弄过来,希望大家海涵或者提供一下
#include
#include
#include
using namespace std;
int N;
int M;
char ** allmap;
char ** side;
int const side_length = 3;
const pair error = make...
分类:
其他 时间:
2015-01-07 23:37:28
收藏:
0 评论:
0 赞:
0 阅读:
606
最近在公司要新开一个项目,和后端商量了一下,准备把http的加密算法换一下,这一换不要紧,尽然发觉水还挺深,先是碰到了自己没有涉及过的NDK,然后是JNI,这里就对上面的内容做一些总结。
首先是NDK环境配置
后来了解到Android studio已经支持NDK了,赶紧从eclipse切了过来,找到了一个很好的教程,基本上可以很简单的做出一个demo....
分类:
其他 时间:
2015-01-07 23:37:14
收藏:
0 评论:
0 赞:
0 阅读:
522
在VS工程中,添加c/c++工程中外部头文件及库的基本步骤:
1、添加工程的头文件目录:工程---属性---配置属性---c/c++---常规---附加包含目录:加上头文件存放目录。
2、添加文件引用的lib静态库路径:工程---属性---配置属性---链接器---常规---附加库目录:加上lib文件存放目录。
然后添加工程引用的lib文件名:工程-...
分类:
其他 时间:
2015-01-07 23:36:16
收藏:
0 评论:
0 赞:
0 阅读:
343
使用unset方法消除数组中的元素
验证代码:
echo "unset数组变量";
$arr=array("name"=>"HOUSE","value"=>6.3);
unset($arr["value"]);
var_dump($arr);
验证结果:
array (size=1)
'name' => string 'HOUSE' (length=5)
总结:...
分类:
其他 时间:
2015-01-07 23:36:04
收藏:
0 评论:
0 赞:
0 阅读:
381
在弄Mybatis的一对多关联的时候,不知道有没有遇到这样的问题,本来数据库中对应有多条数据,然而关联出来却只有一条数据,比如数据库中有个班级表和学生表,数据库中一个班级中对应了多个学生,但使用Mybatis做一对多关联的时候,查询出来的却只有一条。如果出现这样的问题,那么就是两张数据表中的主键重名了,导致在关联查询时分不清到底是那一张表了,因此有关联的数据表时,主键id不要重名,一对多关联实现如...
分类:
其他 时间:
2015-01-07 23:35:54
收藏:
0 评论:
0 赞:
0 阅读:
543
http://codeforces.com/problemset/problem/19/D
Description
Pete and Bob invented a new interesting game. Bob takes a sheet of paper and locates a Cartesian coordinate system on it as follows:...
分类:
其他 时间:
2015-01-07 23:35:44
收藏:
0 评论:
0 赞:
0 阅读:
494
http://codeforces.com/problemset/problem/19/C
Once Bob saw a string. It contained so many different letters, that the letters were marked by numbers, but at the same time each letter ...
分类:
其他 时间:
2015-01-07 23:35:34
收藏:
0 评论:
0 赞:
0 阅读:
415
Android为手势检测提供了一个GestureDetector类,GestureDetector实例代表了一个手势检测器,创建GestureDetector时需要传入一个GestureDetector.OnGestureListener实例,其中GestureDetector.OnGestureListener就是一个监听器,负责对用户的手势行为提供响应。
一、API
1.GestureDe...
分类:
其他 时间:
2015-01-07 23:35:24
收藏:
0 评论:
0 赞:
0 阅读:
532
Write a program to find the node at which the intersection of two singly linked lists begins.
For example, the following two linked lists:
A: a1 → a2
↘
...
分类:
其他 时间:
2015-01-07 23:35:14
收藏:
0 评论:
0 赞:
0 阅读:
318
http://codeforces.com/problemset/problem/19/B
Bob came to a cash & carry store, put n items into his trolley, and went to the checkout counter to pay. Each item is described by its price ci and...
分类:
其他 时间:
2015-01-07 23:34:54
收藏:
0 评论:
0 赞:
0 阅读:
445
《京东技术解密》试读章节共71页,我花了两天时间仔细读完,读了过后感到意犹未尽,非常想一口气把整本读完,然而只能将试读章节反复读了好几遍,收获颇多,遂有此文,借此总结京东十年来的技术变迁和迅速发展。之所以对这本书感兴趣基于两个原因:一是自己最近刚好在读一本书《不战斗不成功:刘强东和京东商城的“野蛮”奋斗史》,见识到了刘强东本人丰富的创业经历,与当当网拼图书、与淘宝网拼百货、与苏宁易购拼家电,京东真...
分类:
其他 时间:
2015-01-07 23:34:34
收藏:
0 评论:
0 赞:
0 阅读:
519
毕业后慢慢发现其实自己的兴趣点是在前端,而并不是在后端的逻辑和数据的处理。
历程
java
php
html
css
javascript -> jquery, angular ....
node.js ->grunt, gulp ,express,koa ....
对于现今用户体验 愈发突出的时代,我认为前端开发的需求将出现暴涨。
一名合格的前端开发工程师不仅仅需要懂...
分类:
其他 时间:
2015-01-07 23:33:54
收藏:
0 评论:
0 赞:
0 阅读:
452
Race
Time Limit: 1000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
Race
Disky and Sooma, two of the bigg...
分类:
其他 时间:
2015-01-07 23:33:44
收藏:
0 评论:
0 赞:
0 阅读:
546
1. 用http://ping.chinaz.com/ ping google的域名。2. 会ping出很多ip,但是chinaz用的是测试网点去ping的,不是你本地宽带, 所以把ping出ip拷贝在excel里,复制ip部分。3. 下载个PingInfoView_1.45,可以用360软件管家中...
分类:
其他 时间:
2015-01-07 23:32:34
收藏:
0 评论:
0 赞:
0 阅读:
1148
1.官方说明If you're on Linux or a Mac, all you need to do is this (note that you don't need to type in the $s, they just indicate the start of each comman...
分类:
其他 时间:
2015-01-07 23:32:24
收藏:
0 评论:
0 赞:
0 阅读:
477