This is a repository of algorithm demos, which appears in my interview, online judge and books about algorithm
interview directory:
- find the kth max: abc.cpp
- atoi function: baidu1.cpp
- devide stones into two parts, and minimize the difference: baidu2.cpp
- topK(two methods):baidu3.cpp, baidu5.cpp
- calculate Longest Palindromic Substring:baidu4.cpp
- n 个珠子, m个颜色:didi1.cpp
- find the medium or find the kth number in two sorted array:jd1.cpp
- retreival of tree:ms1.cpp
- find if there is circle in linked list:ms2.cpp
- 字符串最小编辑距离:ms3.cpp
- 排列组合计算:ms4.cpp
- 疯狂队列:netease1.cpp
- 数字中文读法:weiboyi.cpp
- 二分查找:zhenrongbao.java
- 判断平衡二叉树:amazon1.cpp
- 判断完全二叉树:netease2.cpp
- 二叉树遍历以及最低公共祖先:lianjia1.py
books:
- IntroductionToAlgorithms 算法实现
- 最长递增子序列:array1.cpp
- 子数组之和做大值:array2.cp
- p