Skip to content

Conversation

@titikshit
Copy link

Overview
Adds a missing test case for handling odd-number Collatz inputs.

Motivation
Odd starts (like 25) help surface an easy mistake: using / produces floats, which breaks the integer sequence.
Using // keeps the logic consistent.
This test highlights the issue, and I suggest recommending // in the implementation

Changes
Added test_odd_number_start to verify steps(25) == 23.

@github-actions

This comment was marked as resolved.

@github-actions

This comment was marked as off-topic.

@github-actions github-actions bot closed this Dec 3, 2025
@BethanyG
Copy link
Member

BethanyG commented Dec 3, 2025

Hi @titikshit 👋🏽

This problem is a practice exercise that has been pulled from a common repository. The content and tests have been auto-generated. To add, alter, or propose a test, we ask that you open an issue in the forum under problem specifications, since that is where this change would go so that it benefits more than just the Python track.

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.

2 participants