We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1b9f60 commit 9f0a15eCopy full SHA for 9f0a15e
Target Offer/二维数组查找.py
@@ -29,6 +29,8 @@ def Find(self, array, target):
29
# 判断非法输入
30
# 可以换成 isinstance(target, (int, float)) 进行判断
31
if type(target) == float and type(array[0][0]) == int:
32
+ if int(target) == target:
33
+ return False
34
target = int(target)
35
elif type(target) == int and type(array[0][0]) == float:
36
target = float(int)
0 commit comments