First Timers Only
This issue is reserved for developers who are new to AlgoBuddy or open-source contributing.
Description of the Issue
The visualizer for Best Time to Buy and Sell Stock (LeetCode #121) is currently in Developer Mode ([EXP]). We need to audit its step generator, verify active line highlighting, add an automated unit test, and promote it to Public Release status (AuditStatus::Audited).
Implementation Steps
- Run
cargo run -- --dev and select Best Time to Buy and Sell Stock (#121).
- Verify min price tracking and max profit calculation match execution steps.
- Open
src/app.rs under #[cfg(test)] mod tests and add a unit test asserting step output for [7,1,5,3,6,4].
- Open
src/model/problem.rs and update audit_status(&self) to include Problem::BestTimeStock.
- Run
cargo test to verify all tests pass.
Acceptance Criteria
cargo fmt --all -- --check completes without warnings.
cargo test passes 100% of unit tests.
- Branch targets
dev.
Step-by-Step Contribution Guide
- Claim this issue: Comment below that you are working on this issue to receive assignment.
- Fork and Branch: Create a new branch off
dev named audit-[problem-slug].
- Make and Test Changes: Run
cargo fmt --all and cargo test locally to verify build health.
- Submit PR: Push your branch to GitHub and create a Pull Request targeting the
dev branch.
Additional Information
First Timers Only
This issue is reserved for developers who are new to AlgoBuddy or open-source contributing.
Description of the Issue
The visualizer for Best Time to Buy and Sell Stock (LeetCode #121) is currently in Developer Mode (
[EXP]). We need to audit its step generator, verify active line highlighting, add an automated unit test, and promote it to Public Release status (AuditStatus::Audited).Implementation Steps
cargo run -- --devand select Best Time to Buy and Sell Stock (#121).src/app.rsunder#[cfg(test)] mod testsand add a unit test asserting step output for[7,1,5,3,6,4].src/model/problem.rsand updateaudit_status(&self)to includeProblem::BestTimeStock.cargo testto verify all tests pass.Acceptance Criteria
cargo fmt --all -- --checkcompletes without warnings.cargo testpasses 100% of unit tests.dev.Step-by-Step Contribution Guide
devnamedaudit-[problem-slug].cargo fmt --allandcargo testlocally to verify build health.devbranch.Additional Information