pydatastructs icon indicating copy to clipboard operation
pydatastructs copied to clipboard

added c++ backend for cocktail sort

Open arvinder004 opened this issue 8 months ago • 1 comments

Fixes #679

Brief description of what is fixed or changed

  • Added the cocktail sort implementation in the C++ Backend file quadratic_time_sort.hpp
  • Exposed C++ functions to Python
  • Updated Python Functions

arvinder004 avatar Apr 08 '25 17:04 arvinder004

sir i have added a test function, it was not accepting the _test_common_sort() so I have added a seperate test function for cocktail shaker sort that will test both python and C++ Backends

arvinder004 avatar Apr 09 '25 10:04 arvinder004