自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

AEhaojiu的专栏

Talk is cheap. Show me the code.

  • 博客(22)
  • 资源 (7)
  • 收藏
  • 关注

转载 N-Gram模型

来自:http://www.cnblogs.com/chaosimple/p/3376438.html N-Gram模型时大词汇连续语音识别中常用的一种语言模型,对中文而言,我们称之为汉语语言模型(CLM, Chinese Language Model)。汉语语言模型利用上下文中相邻词间的搭配信息,在需要把连续无空格的拼音、笔画,或代表字母或笔画的数字,转换成汉字串(即句子)时,可以计算出最大概率

2017-02-27 19:46:04 383

原创 LeetCode | Edit Distance

question:Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have the following 3 operations permitted on a w

2017-01-01 21:06:09 379

原创 LeetCode | Dungeon Game

question:The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K) was initi

2016-12-29 17:11:33 338

原创 Leetcode | Count Complete Tree Nodes

questionGiven a complete binary tree, count the number of nodes.Definition of a complete binary tree from Wikipedia: In a complete binary tree every level, except possibly the last, is completely fill

2016-12-22 20:10:12 387

转载 macOS Sierra 10.12 因Gatekeeper无法安装第三方应用解决

转自:http://www.ijiandao.com/safe/cto/38330.html最近在给自己的mac 升级到了macOS Sierra,没想到瞬间各种悲剧的事情发生了,所有破解的软件都失效了,坑爹地一个个重新破解找方案又遇到一个新问题,第三方应用竟然无法安装了。在系统偏好设置 – 安全与隐私 – 允许以下位置下载的应用里选择“仍然打开”,竟然失效了,同时“任何来源”的选项也不知道去哪里了

2016-12-20 20:27:32 1451

原创 Leetcode | Binary Tree Right Side View

question:Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.For example: Given the following binary tree, 1

2016-12-19 20:07:26 347

原创 Leetcode | Lowest Common Ancestor of a Binary Search Tree

questionGiven a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined bet

2016-12-16 13:30:32 371

原创 Leetcode | House Robber III

questionThe thief has found himself a new place for his thievery again. There is only one entrance to this area, called the “root.” Besides the root, each house has one and only one parent house. After

2016-12-13 19:22:13 334

原创 Leetcode | Path Sum III

questionYou are given a binary tree in which each node contains an integer value.Find the number of paths that sum to a given value.The path does not need to start or end at the root or a leaf, but it

2016-12-13 19:20:57 437

原创 Leetcode | Basic Calculator

questionImplement a basic calculator to evaluate a simple expression string.The expression string may contain open ( and closing parentheses ), the plus + or minus sign -, non-negative integers and emp

2016-12-09 21:15:21 301

原创 Leetcode | Binary Tree Inorder Traversal

question:Given a binary tree, return the inorder traversal of its nodes’ values.For example: Given binary tree [1,null,2,3], 1\ 2/3return [1,3,2].explanation// 先将所有的左结点入栈 然后对每个出栈的结点进行判断 若该节点有右结点

2016-12-09 21:13:13 298

原创 Leetcode | Remove Duplicate Letters

questionGiven a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your result is the smallest in lexicographical

2016-12-09 20:48:36 400

原创 Leetcode | Verify Preorder Serialization of a Binary Tree

question:One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we record the node’s value. If it is a null node, we record using a sentinel value such as

2016-12-07 16:48:06 333

原创 Leetcode | Mini Parser

questionGiven a nested list of integers represented as a string, implement a parser to deserialize it.Each element is either an integer, or a list – whose elements may also be integers or other lists.N

2016-12-07 16:24:28 342

原创 Leetcode | 132pattern

questionGiven a sequence of n integers a1, a2, …, an, a 132 pattern is a subsequence ai, aj, ak such that i < j < k and ai < ak < aj. Design an algorithm that takes a list of n numbers as input and che

2016-12-07 16:20:57 455

转载 Android Studio 快捷键

Alt+回车 导入包,自动修正 Ctrl+N 查找类 Ctrl+Shift+N 查找文件 Ctrl+Alt+L 格式化代码 Ctrl+Alt+O 优化导入的类和包 Alt+Insert 生成代码(如get,set方法,构造函数等) Ctrl+E或者Alt+Shift+C 最近更改的代码 Ctrl+R 替换文本 Ctrl+F 查找文本 Ctrl+Shift+Space 自动补

2015-07-03 23:59:37 464

原创 面试之常用算法总结

面试中常常会遇到算法的问题 而基础算法的考核离不开链表和二叉树,下面是对这两种数据结构常见问题的总结1、链表#include<Stack>#include<stdio.h>#include<stdlib.h>/* 链表的总结 插入 删除以及遍历 以及链表相关的应用 */// 链表的结构// 插入 若第一个节点为空则需啊替换 所以传递的参数必须是指针的指针 否则修改无效stru

2015-04-10 23:26:14 905

原创 Android Studio之版本管理工具Git (图文教程)

目前业界主流的版本管理工具主要是 svn/git。svn是一种集中式的代码管理工具,而git是一种分布式的代码管理工具,广受极客的喜爱。而基于git的github更是全宇宙码农的提高逼格,深究技术的必备神器。下面介绍,如何将Android Studio中的工程托管到github中。一.使用git1.首先在github上创建一个工程: 2.配置git环境 若Android Studio中的git环

2015-03-06 13:40:46 4580 4

原创 Android Studio 快速入门

1.背景Android Studio 自从 2013年谷歌I/O大会推出到现在将近2年了,也更新到了1.0的稳定版本,此时不入手更待何时。Android Studio VS Eclipse (1)Eclipse没有官方支持的Android5.0的sdk更新 毕竟AS才是亲儿子啊 (2)强大的UI编辑功能 可以实时查看修改布局代码后产生的变化 可以便捷的查看布局文件中的资源文件 (3)牛逼的代码

2015-03-03 17:14:18 992

原创 Android 显示 Gif动态图片的三种常用方法

1.首先描述下自定义组件的一般方法:自定义组价是被创造出来,所以先要复写它三个的构造方法,根据需求决定复写哪个,若没有自定义属性,复写只有一个参数的即可。若有自定义属性,则可以通过obtainStyledAttributes获得TypedArray对象,通过该对象获得属性并进行相应操作。然后下面的过程和画画差不多,我们在画一样东西的时候,首先要知道物品大概的样子,也就是需要复写onMeasur

2015-02-10 17:43:47 8501

转载 VM9.0链接+汉化包+序列号

VMware Workstation是本人一直在使用的虚拟机软件,同类软件还有微软的Microsoft Virtual PC和甲骨文的VirtualBox,不过个人认为,VMware更为强大,当然了,体积也大好多。传说VMware Workstation 9最大的亮点是完美支持Windows 8和USB3.0,Win8没有问题,至于USB3.0,不管我怎么设置,在我的Macbook P

2013-07-20 16:04:26 2276

转载 一个初创团队的产品创新之路

摘要:本文为速评网联合创始人王立杰在CTO俱乐部第96期《产品创新之路及DevOps实践分享》活动上的分享精华,分享主要围绕如何决定产品的路线图,如何快速验证核心用户需求,如何为客户带来最大价值的服务等几方面。我们经常会听到颠覆性创新、微创新这样的词语。但实际上创新非常难做。尤其对于初创小团队,创新实在太难。在CTO俱乐部第96期《 产品创新之路及DevOps实践分享 》活动上

2013-05-18 13:01:06 654

统计学完全教程-中文版

统计学完全教程中文版 必备的统计学教程

2017-08-23

移动后端云平台Bmob

移动后端云平台Bmob 独立开发者的福音,友数据服务、文件服务、推送服务等功能。 这是一个例子。

2015-05-02

个人云存储助手apk文件

这是一款基于新浪微盘开发平台的个人云储存助手app。手机端的云盘基本的功能是实时上传和下载文件,浏览目录,使个人资料可以存放在云端,方便安全。

2015-04-23

xUtils开源项目

集大成的开源项目 xUtils 有网络访问 缓存 依赖注入等功能

2015-04-19

OAuth2认证之新浪微博

OAuth2认证资源 实现微博的

2015-04-19

自定义TextVIew显示GIF图片

自定义TextView显示Gif,先使用GifDecoder将Gif文件解析成一张张图片,然后通过ImageSpan将图片显示在TextView中,定义一个线程不断刷新图片

2015-02-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除