Closed Kishan-Ved closed 6 months ago
Also, may I please know why 7 checks are failing?
I've figured this out and I'm working on it now, thanks!
May I please know which files I'm supposed to change? I've read the testing instructions and tried to test the existing code. However, when I test with my code, there are errors: I added relevant (similar to other sorting functions) tests to test_algorithms file in tests folder and test_algorithms file in the benchmarks folder. But the errors exist. The error is that intro_sort (my function) cannot be imported. I'm unable to trace this error, please help.
For now, I've added the intro_sort function to algorithms.py (not in the all list), with proper formatting (whitespaces, newline characters etc.)
Adding introsort to all list in algorithms.py increases number of errors significantly (all being import errors for intro_sort)
Brief description of what is fixed or changed
This PR is for issue: https://github.com/codezonediitj/pydatastructs/issues/545
I have implemented introsort as described in Wikipedia: https://en.wikipedia.org/wiki/Introsort (as mentioned in the issue).
Please note:
Please let me know if any other changes are needed.