算法
weixin_37946518
这个作者很懒,什么都没留下…
展开
-
算法专题
接雨水 https://my.oschina.net/magicalSam/blog/1528428 DFA算法 https://blog.csdn.net/weixin_37946518/article/details/101862021 RK算法 https://mp.weixin.qq.com/s/67uf7pRxXh7Iwm7MMpqJoA KMP算法 https://blo...原创 2019-09-27 10:03:22 · 82 阅读 · 0 评论 -
接雨水算法
接雨水 public class Text { public static int max(int a, int b) { return a >= b ? a : b; } public static int trap(int[] arr) { if (arr.length == 0) { return 0; } int n = arr.length;...原创 2019-10-01 20:01:44 · 453 阅读 · 0 评论 -
敏感词过滤
核心算法一:构建状态树 /** * 读取敏感词库,将敏感词放入HashSet中,构建一个DFA算法模型:<br> * 中 = { * isEnd = 0 * 国 = {<br> * isEnd = 1 * 人 = {isEnd = 0 ...原创 2019-10-01 20:21:01 · 180 阅读 · 0 评论