Corrected the Python Doctest command in equilibrium_index_in_array.py script (#11212)

Co-authored-by: Indrajeet Mishra <indrajeetmishra@thecoddiwompler.local>
This commit is contained in:
Indrajeet Mishra 2023-12-20 04:35:27 +05:30 committed by GitHub
parent 2d0ed135a0
commit b46fc1de04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ Find the Equilibrium Index of an Array.
Reference: https://www.geeksforgeeks.org/equilibrium-index-of-an-array/ Reference: https://www.geeksforgeeks.org/equilibrium-index-of-an-array/
Python doctest can be run with the following command: Python doctest can be run with the following command:
python -m doctest -v equilibrium_index.py python -m doctest -v equilibrium_index_in_array.py
Given a sequence arr[] of size n, this function returns Given a sequence arr[] of size n, this function returns
an equilibrium index (if any) or -1 if no equilibrium index exists. an equilibrium index (if any) or -1 if no equilibrium index exists.