Skip to content

Code from 28_10_2021 #57

Open
Open
@NikolayLazarov

Description

@NikolayLazarov

def check_arr(arr, result = 5):

arr.sort()
#[-50, -4, 1, 2, 4, 5, 5, 9, 23, 23, 40, 42]    
for i in arr:
    #-50 + x = 5
    #x = 5 - (-50)
    #binary search for x

return 

arr = [1 ,2 , 9 , 4 ,5 ,5, -50, 40, -4, 42 ,23 ,2 3]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions