


'''simple docstring'''




from __future__ import annotations





def      _a		(lowercase__ :      list[int]       ,      lowercase__ :      int	) -> int:






     """simple docstring"""
     __snake_case			,					__snake_case    			=	0, len(lowercase__	) - 1
     while start_ind <= end_ind:
          if array[start_ind] == search_item:
               return start_ind
          elif array[end_ind] == search_item:
               return end_ind
          else:
               start_ind += 1
               end_ind -= 1
    # returns -1 if search_item is not found in array
     return -1


if __name__ == "__main__":
       print(double_linear_search(list(range(100)), 40))








'''simple docstring'''




def      _a		(lowercase__ :      int	) -> int:






     """simple docstring"""
     return 1 if input_a == 0 else 0





def      _a		() -> None:






     """simple docstring"""
     assert not_gate(0	) == 1
     assert not_gate(1	) == 0


if __name__ == "__main__":
       print(not_gate(0))
       print(not_gate(1))




