Skip to content

剑指offer+面试题3+第31行+是不是有问题 #13

@LinjingBi

Description

@LinjingBi
    if type(target) == float and type(array[0][0]) == int:
        if int(target) == target:      #这里的==应该是!=吧 第三个测试例子也因为这个==,
                                                  #导致13.0输出为False,但是明明array里有13
              return False

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions