We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac8ef2f commit 7e1984cCopy full SHA for 7e1984c
actual_interviews/xiaomi/1.md
@@ -0,0 +1,11 @@
1
+Title
2
+二分查找
3
+
4
+Question description
5
+请实现无重复数字的升序数组的二分查找
6
7
+给定一个 元素升序的、无重复数字的整型数组 nums 和一个目标值 target ,写一个函数搜索 nums 中的 target,如果目标值存在返回下标(下标从 0 开始),否则返回 -1
8
+输入:
9
+[-1,0,3,4,6,10,13,14],13
10
+返回值:6
11
+说明:13 出现在nums中并且下标为 6
0 commit comments