Ad
  • Default User Avatar

    I am not a guru, but wouldn't this alteration to xDranik solution be more effeciant?

    def mineLocation(field):
    for i,subfield in enumerate(field):
    if 1 in subfield: return [i, subfield.index(1)]