题目:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space ...
分类:
其他 时间:
2015-06-06 06:48:05
收藏:
0 评论:
0 赞:
0 阅读:
234
DFS solution is intuitive. I put my BFS solution below:class Solution {public: int countNodes(TreeNode* root) { if (!root) return 0; ...
分类:
其他 时间:
2015-06-06 06:47:45
收藏:
0 评论:
0 赞:
0 阅读:
131
想了很多,却发现不知道从何说起。我与编程的第一次相会那是一个夏天的课上……(乱说的)其实,忘了,大概就是初二的时候,电脑老师可能是看有相关活动,随便找的几个电脑玩得还利索的(小学跑网吧跑多了)去参加个什么编程比赛,就被要求看 Pascal 的书,让我们照着书打,啥也没教,考完后就数落,客观题基本没对...
分类:
其他 时间:
2015-06-06 06:47:25
收藏:
0 评论:
0 赞:
0 阅读:
213
典型的dfs题,建议在其他dfs之前做public class Solution { public ArrayList> combine(int n, int k) { ArrayList> res = new ArrayList>(); if(nn) return...
分类:
其他 时间:
2015-06-06 06:47:05
收藏:
0 评论:
0 赞:
0 阅读:
119
As a hacker, do the hacking.Here I mean the [hacker](http://en.wikipedia.org/wiki/Hacker_(term) ) . If you don't understand, never again.Think in the ...
分类:
其他 时间:
2015-06-06 06:45:55
收藏:
0 评论:
0 赞:
0 阅读:
160
这几天在看《统计学习方法》这本书,发现 梯度下降法在 感知机 等机器学习算法中有很重要的应用,所以就特别查了些资料。 一.介绍 梯度下降法(gradient descent)是求解无约束最优化问题的一种常用方法,有实现简单的优点。梯度下降法是迭代算法,每一步需要求解目标函数的梯度向量。二.应用...
分类:
其他 时间:
2015-06-06 06:45:35
收藏:
0 评论:
0 赞:
0 阅读:
317
Dinner时间限制:100ms | 内存限制:65535KB难度:1描述Little A is one member of ACM team. He had just won the gold in World Final. To celebrate, he decided to invite a...
分类:
其他 时间:
2015-06-06 06:44:55
收藏:
0 评论:
0 赞:
0 阅读:
228
最近在使用uVision V5.14.0.0 的时候,由于我使用的Jlink是盗版的,导致软件总是退出,然后再网上找到了解决办法。下面介绍解决办法:参考:http://www.9mcu.com/9mcubbs/forum.php?mod=viewthread&tid=1050785http://bl...
分类:
其他 时间:
2015-06-06 06:44:26
收藏:
0 评论:
0 赞:
0 阅读:
505
package www.KINDA.com.cn.io;import java.io.File;import java.io.FileFilter;public class FileDemo3 { public static void main(String[] args) { /** * ...
分类:
其他 时间:
2015-06-06 06:44:17
收藏:
0 评论:
0 赞:
0 阅读:
159
黑客帝国2 ed2k://|file|%E9%BB%91%E5%AE%A2%E5%B8%9D%E5%9B%BD2%EF%BC%9A%E9%87%8D%E8%A3%85%E4%B8%8A%E9%98%B5.rmvb|1203595987|8A5D9DC8C5D0D8D4685EF21CC00168.....
分类:
其他 时间:
2015-06-06 06:44:00
收藏:
0 评论:
0 赞:
0 阅读:
16590
事务处理Redis对事务的支持目前还比较简单。Redis只能保证一个client发起的事务中的命令可以连续的执行,而中间不会插入其他client的命令。当一个client在一个连接中发出mu...
分类:
其他 时间:
2015-06-06 02:21:22
收藏:
0 评论:
0 赞:
0 阅读:
275
查看远程Redis服务器的版本如何查看远程Redis服务器的版本如果无远程Redis服务器的SSH访问权限,又想知道Redis服务器是哪个版本,该怎么办?很简单,在本地安装一个Redis,...
分类:
其他 时间:
2015-06-06 02:20:31
收藏:
0 评论:
0 赞:
0 阅读:
192
进入Oracle 11gR2,ASM(Automatic Storage Management)从Database组件中剥离出来,作为独立组件Component进入Grid管理范畴。本篇主要介绍笔者遇到的一个数据库启动加载...
分类:
其他 时间:
2015-06-06 02:18:25
收藏:
0 评论:
0 赞:
0 阅读:
356
1. 使用阿里巴巴Druid连接池(高效、功能强大、可扩展性好的数据库连接池、监控数据库访问性能、支持Common-Logging、Log4j和JdkLog,监控数据库访问)2. 提供高并发JMS消息处理机制3. 所有功能模块化、所有模块服务化、所有服务原子化的方式,提供可拓展的服务模型,使程序稳定运行,永不宕机4. 提供Wink Rest、Webservice服务,故可作为独立服务平台部署
...
分类:
其他 时间:
2015-06-06 02:14:40
收藏:
0 评论:
0 赞:
0 阅读:
344
项目中用到了百度的Echarts,很棒的JS插件,基本上所有可配置的地方都被Kener-林峰做成了可配置的,
但是在使用过程中,也遇见了一些棘手的问题,下面和大家分享一下关于仪表盘变色的问题。
?
官方的OP:
option = {
tooltip : {
formatter: "{a} <br/>{b} : {c}%"
...
分类:
其他 时间:
2015-06-06 02:13:50
收藏:
0 评论:
0 赞:
0 阅读:
361
kafka获得partition下标,需要用到kafka的simpleconsumer
?
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util. ...
分类:
其他 时间:
2015-06-06 02:11:45
收藏:
0 评论:
0 赞:
0 阅读:
912
看到android实现的一个效果视频,就学习一下:
?一、2D翻转:
?呵,我来说就是一张图片先收缩,另一张图片在展开.
?
?二、实现效果:
???
?三、实现源码:
?Main:
package com.example.card2d;
import android.os.Bundle;
import android.app.Activity;
import andro ...
分类:
其他 时间:
2015-06-06 02:11:24
收藏:
0 评论:
0 赞:
0 阅读:
384
Implement strStr().
Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
?
public class Solution {
private static int[] nextval;
private sta ...
分类:
其他 时间:
2015-06-06 02:10:05
收藏:
0 评论:
0 赞:
0 阅读:
188
subList是在日常中常用的方法,可以有一些细节可能一直不从注意到。
???subList返回的是当前list的一个视图,如果起始位置相同则返回一个空列表。返回的子列表仅仅是原有的list的视图,对sublist的修改可以直接影响到原list。但是对原有List进行结构化进行修改后则subList则失效,再对其进行操作时会抛出一个java.util.ConcurrentModificat ...
分类:
其他 时间:
2015-06-06 02:08:50
收藏:
0 评论:
0 赞:
0 阅读:
234
1、Collins
http://www.collinsdictionary.com/
?
2、Merriam-Webster
?
http://www.wordcentral.com/
http://www.merriam-webster.com/
?
3、Oxford
分类:
其他 时间:
2015-06-06 02:08:25
收藏:
0 评论:
0 赞:
0 阅读:
274