摘要:
剑指offer 12.矩阵中的路径 自己写的版本,用Map来做,无法通过全部用例,原因是面临多个选择只能走其中一条,无法走其他的。需要改进,在判断那里加递归。 class Solution { public boolean exist(char[][] board, String word) { i 阅读全文
posted @ 2021-03-16 20:13
shaon111
阅读(27)
评论(0)
推荐(0)
摘要:
手写快排和冒泡 快速排序 第一种写法 public static int[] qsort1(int arr[], int start, int end) { int i = start;//定义起点 int j = end;//定义终点 int key = arr[start];//一开始先选择第一 阅读全文
posted @ 2021-03-16 16:59
shaon111
阅读(97)
评论(0)
推荐(0)

浙公网安备 33010602011771号