src/p3_rearrange_array_digits.py
def rearrange_digits(input_list):
    """
    Rearrange Array Elements so as to form two number such that their sum is maximum.

    Args:
       input_list(list): Input List
    Returns:
       (int),(int): Two maximum sums
    """
    list_len = len(input_list)
    # If list doesn't have at least 2 element is not possible made sum between two number
    if list_len < 2:
        return []
    return_list = [0, 0]
    heapsort(input_list)
    return_index = 0
    multiplier = 1
    for i in range(list_len):
        return_list[return_index] += input_list[i] * multiplier
        if return_index == 1:
            return_index = 0
            multiplier *= 10
        else:
            return_index = 1
    return return_list

    Rearrange Array Elements so as to form two number such that their sum is maximum.

    Args:
       input_list(list): Input List
    Returns:
       (int),(int): Two maximum sums
    
Rearrange Array Elements so as to form two number such that their sum is maximum.
Rearrange Array Elements so as to form two number such that their sum is maximum .
def rearrange_digits(input_list):
    list_len = len(input_list)
    if list_len < 2:
        return []
    return_list = [0, 0]
    heapsort(input_list)
    return_index = 0
    multiplier = 1
    for i in range(list_len):
        return_list[return_index] += input_list[i] * multiplier
        if return_index == 1:
            return_index = 0
            multiplier *= 10
        else:
            return_index = 1
    return return_list
def rearrange_digits ( input_list ) : list_len = len ( input_list ) if list_len < 2 : return [ ] return_list = [ 0 , 0 ] heapsort ( input_list ) return_index = 0 multiplier = 1 for i in range ( list_len ) : return_list [ return_index ] += input_list [ i ] * multiplier if return_index == 1 : return_index = 0 multiplier *= 10 else : return_index = 1 return return_list
Rearrange Array Elements so as to form two number such that their sum is maximum.
Rearrange Array Elements so as to form two number such that their sum is maximum .
"""
    Rearrange Array Elements so as to form two number such that their sum is maximum.

    Args:
       input_list(list): Input List
    Returns:
       (int),(int): Two maximum sums
    """ # If list doesn't have at least 2 element is not possible made sum between two number
Two maximum sums
Two maximum sums
(int),(int)
input_list
None