


"""simple docstring"""







def _A						(						lowercase		):







    """simple docstring"""
    # if the collection is empty, returns empty
    if collection == []:
        return []

    # get some information about the collection
    a					=len(lowercase		)
    a					=max(lowercase		)
    a					=min(lowercase		)

    # create the counting array
    a					=coll_max + 1 - coll_min
    a					=[0] * counting_arr_length

    # count how much a number appears in the collection
    for number in collection:
        counting_arr[number - coll_min] += 1

    # sum each position with it's predecessors. now, counting_arr[i] tells
    # us how many elements <= i has in the collection
    for i in range(1	,   lowercase		):
        a					=counting_arr[i] + counting_arr[i - 1]

    # create the output collection
    a					=[0] * coll_len

    # place the elements in the output, respecting the original order (stable
    # sort) from end to begin, updating counting_arr
    for i in reversed(range(0	,   lowercase		)		):
        a					=collection[i]
        counting_arr[collection[i] - coll_min] -= 1

    return ordered
def _A						(						lowercase		):







    """simple docstring"""
    return "".join([chr(lowercase		) for i in counting_sort([ord(lowercase		) for c in string]		)]		)


if __name__ == "__main__":
       # Test string sort
       assert counting_sort_string("""thisisthestring""") == "eghhiiinrsssttt"

       lowerCamelCase_       :       Optional[Any]      						=  input("""Enter numbers separated by a comma:\n""").strip()
       lowerCamelCase_       :       Dict      						=  [int(item) for item in user_input.split(""",""")]
       print(counting_sort(unsorted))



"""simple docstring"""







from __future__ import annotations
def _A						(						lowercase	,   lowercase	,   lowercase	,   ):







    """simple docstring"""
    if (electron_conc, hole_conc, intrinsic_conc).count(0		) != 1:
        raise ValueError('''You cannot supply more or less than 2 values'''		)
    elif electron_conc < 0:
        raise ValueError('''Electron concentration cannot be negative in a semiconductor'''		)
    elif hole_conc < 0:
        raise ValueError('''Hole concentration cannot be negative in a semiconductor'''		)
    elif intrinsic_conc < 0:
        raise ValueError(
            '''Intrinsic concentration cannot be negative in a semiconductor'''		)
    elif electron_conc == 0:
        return (
            "electron_conc",
            intrinsic_conc**2 / hole_conc,
        )
    elif hole_conc == 0:
        return (
            "hole_conc",
            intrinsic_conc**2 / electron_conc,
        )
    elif intrinsic_conc == 0:
        return (
            "intrinsic_conc",
            (electron_conc * hole_conc) ** 0.5,
        )
    else:
        return (-1, -1)


if __name__ == "__main__":
       import doctest

       doctest.testmod()