Motivation
Functor solves the problem of mapping regular one-parameter functions into a sub-category, but that's not easy for functions with more than one parameters.
Let's consider a function with two parameters f :: a -> b -> c, which can also read as a -> (b -> c). Applying fmap on f, we will get fmap f :: m a -> 继续阅读 »
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
bash
$ hexo new "My New Post"
More info: Writing
Run server
bash
$ hexo server
More in继续阅读 »
Question
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes 1->2->3->5.
Note:
Given n will always be valid.
Try to do this in one pass.
解说
这道题的意思是,如何反向删继续阅读 »
New features
Add wait multi-processes interface
Add uuid generator
Add hash library module
Add __tb_deprecated__ keyword and option
Changes
Move some utils interfaces to the hash module
Rewrite random generator
Bugs fixed
Fix stdout compatibility issue for vs2015
Fix process arguments length limit继续阅读 »
Kaldi是一个语音识别工具,使用C++开发,基于Apache 许可证,目的是为语音识别研究者提供。本文将介绍在线安装kaldi,为之后的离线安装kaldi做一个准备和基础。
1. 下载kaldi
目前kaldi是开源的,在github上可以clone;clone以后进入该目录,然后查看安装方法。
git clone https://github.com/kaldi-asr/kaldi.git
cd kaldi/
cat INSTALL
INSTALL文件指示如下:
This is the official Kaldi INSTALL. Look also at INSTALL.md for the git mirror 继续阅读 »