- 博客(2)
- 收藏
- 关注
原创 算法题之接雨水
解题思路,通过栈,但是需要正向栈和逆向栈进行俩次叠加,需要对最大值公共部分进行特殊处理public int trap(int[] height) { int maxHeight = 0; int indexOrderValue = 0, indexInvertedOrderValue = 0, orderNum = 0, invertedOrderNum =...
2020-01-04 01:17:06 838
原创 二维无序数组,搜索不定长度的word单词是否在二维数组中出现
/** * a b c * d e f * g h i * j k l * 输入 adeh,ehil 则返回true,输入adei,ehik返回false, */public class Arithmetic { public Boolean nomography(String[][] chars, String param) { int xleng...
2019-12-28 02:05:29 394
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人