Skip to content

Conversation

@Hillan007
Copy link

Summary: Add a small, importable solution for the Hackerearth time conversion problem, unit tests, a fixed sliding-window implementation, and a GitHub Actions workflow to run Python tests.
Motivation: Make algorithm solutions importable, add automated tests, and enable CI so future changes are validated automatically.
What I changed

Added time_conversion.py — refactored original script into a testable function timeConversion(s).
Added init.py — package marker to allow imports.
Added test_time_conversion.py — pytest unit tests covering AM/PM edge cases.
Updated SlidingWindowMinMax.py — removed inline test/runner, fixed sliding-window logic and optimized incremental sum.
Added .github/workflows/python-tests.yml — CI that runs pytest on multiple Python versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant