mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-09-28 21:45:27 +08:00
* Adds pairwise iteration algorithm * Fixed code typo * updating DIRECTORY.md * updating DIRECTORY.md * updating DIRECTORY.md * Improve documentation for pairwise_iteration_tee Updated documentation to clarify the use of pairwise iteration and added a reference to the itertools.pairwise function. * Correct import and update pairwise test cases Fix import statement for pairwise in pairwise_iteration_tee function and update test cases. * Fix indentation in pairwise_iteration.py docstring * Enhance docstring for pairwise iteration Added docstring explaining the use of itertools.tee for independent iterators. --------- Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: cclauss <cclauss@users.noreply.github.com>