1901. 寻找峰值 II
1901. 寻找峰值 II
- 难度:
medium
- 原始链接: https://leetcode.cn/problems/find-a-peak-element-ii
- 标签:
二分查找
解法一: 暴力
1 | func findPeakGrid(mat [][]int) []int { |
解法二: 二分查找
1 | func findPeakGrid(mat [][]int) []int { |
medium
二分查找
1 | func findPeakGrid(mat [][]int) []int { |
1 | func findPeakGrid(mat [][]int) []int { |