Skip to content

Commit ce82fdc

Browse files
committed
Update 美团面试常见问题总结.md
1 parent dcc61ba commit ce82fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/essential-content-for-interview/PreparingForInterview/美团面试常见问题总结.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public interface RandomAccess {
493493

494494
查看源码我们发现实际上 RandomAccess 接口中什么都没有定义。所以,在我看来 RandomAccess 接口不过是一个标识罢了。标识什么? 标识实现这个接口的类具有随机访问功能。
495495

496-
在 binarySearch() 方法中,它要判断传入的 list 是否 RamdomAccess 的实例,如果是,调用 indexedBinarySearch() 方法,如果不是,那么调用 iteratorBinarySearch() 方法
496+
在 binarySearch() 方法中,它要判断传入的 list 是否 RandomAccess 的实例,如果是,调用 indexedBinarySearch() 方法,如果不是,那么调用 iteratorBinarySearch() 方法
497497

498498
```java
499499
public static <T>

0 commit comments

Comments
 (0)