mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00
Upgrade to Python 3.13 (#11588)
This commit is contained in:
@ -87,9 +87,11 @@ class BankersAlgorithm:
|
||||
This function builds an index control dictionary to track original ids/indices
|
||||
of processes when altered during execution of method "main"
|
||||
Return: {0: [a: int, b: int], 1: [c: int, d: int]}
|
||||
>>> (BankersAlgorithm(test_claim_vector, test_allocated_res_table,
|
||||
... test_maximum_claim_table)._BankersAlgorithm__need_index_manager()
|
||||
... ) # doctest: +NORMALIZE_WHITESPACE
|
||||
>>> index_control = BankersAlgorithm(
|
||||
... test_claim_vector, test_allocated_res_table, test_maximum_claim_table
|
||||
... )._BankersAlgorithm__need_index_manager()
|
||||
>>> {key: [int(x) for x in value] for key, value
|
||||
... in index_control.items()} # doctest: +NORMALIZE_WHITESPACE
|
||||
{0: [1, 2, 0, 3], 1: [0, 1, 3, 1], 2: [1, 1, 0, 2], 3: [1, 3, 2, 0],
|
||||
4: [2, 0, 0, 3]}
|
||||
"""
|
||||
|
Reference in New Issue
Block a user