def get_indices_of_item_weights(weights, length, limit):

    """
    YOUR CODE HERE
    """
    # for every item
    # if storage[limit - item] exists:
        # compose and return result
    # else
        # add the weight:index to the 
        # storage
    
    if length < 1:
        return None

    storage = {}
    output = []
    possible = False
    for index,i in enumerate(weights):
        try:
            test = storage[limit-i] # should return index
            return (index, test)
        except KeyError:
            storage[i] = index
    
    if possible:
        return (storage[max(output)],storage[min(output)])
    else: 
        return None

6b368253e51cf58ec3d116c002340c21b0c2236e
<mask token>

def get_indices_of_item_weights(weights, length, limit):
    """
    YOUR CODE HERE
    """
    if length < 1:
        return None
    storage = {}
    output = []
    possible = False
    for index, i in enumerate(weights):
        try:
            test = storage[limit - i]
            return index, test
        except KeyError:
            storage[i] = index
    if possible:
        return storage[max(output)], storage[min(output)]
    else:
        return None

def get_indices_of_item_weights(weights, length, limit):

    """
    YOUR CODE HERE
    """
    # for every item
    # if storage[limit - item] exists:
        # compose and return result
    # else
        # add the weight:index to the 
        # storage
    
    if length < 1:
        return None

    storage = {}
    output = []
    possible = False
    for index,i in enumerate(weights):
        try:
            test = storage[limit-i] # should return index
            return (index, test)
        except KeyError:
            storage[i] = index
    
    if possible:
        return (storage[max(output)],storage[min(output)])
    else: 
        return None
