From 0672ae9a3ab5856c0b87ec9142c2baa95dbc3041 Mon Sep 17 00:00:00 2001 From: bt3gl <138340846+bt3gl-google@users.noreply.github.com> Date: Sun, 30 Jul 2023 15:54:07 -0700 Subject: [PATCH] Update array-check-if-exist.py --- arrays_and_strings/array-check-if-exist.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arrays_and_strings/array-check-if-exist.py b/arrays_and_strings/array-check-if-exist.py index b15f3ca..268aff7 100644 --- a/arrays_and_strings/array-check-if-exist.py +++ b/arrays_and_strings/array-check-if-exist.py @@ -1,3 +1,7 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# author: bt3gl + """ Given an array arr of integers, check if there exist two indices i and j such that : @@ -24,4 +28,4 @@ def check_if_exist(arr: list[int]) -> bool: if __name__ == "__main__": arr = [-2, 0, 10, -19, 4, 6, -8] - print(check_if_exist(arr)) \ No newline at end of file + print(check_if_exist(arr))