DSA/arrays
Christian Clauss 2a8185f159
Add Python doctests to count-inversions.py (#159)
* Add Python doctests to count-inversions.py

These [doctests](https://docs.python.org/3/library/doctest.html) can be run with `python3 -m doctest -v count-inversions.py`

Our GitHub Actions will also run these doctests.  https://github.com/MakeContributions/DSA/actions

The answer to the last test should be 0, not 2.

@atin Your review please.

* Avoid unnecessary inversions
2021-04-12 06:03:47 -04:00
..
c-or-cpp added max subarray sum (#131) 2021-04-03 12:16:29 -04:00
java add arrays left rotation in java (#155) 2021-04-11 13:49:36 -04:00
js added algo to count inversions in an array in C++, Python, JavaScript and Java (#79) 2021-02-23 16:14:09 -04:00
python Add Python doctests to count-inversions.py (#159) 2021-04-12 06:03:47 -04:00
README.md add arrays left rotation in java (#155) 2021-04-11 13:49:36 -04:00