Skip to content
This repository was archived by the owner on Sep 7, 2025. It is now read-only.

Conversation

Rudxain
Copy link

@Rudxain Rudxain commented Sep 16, 2022

Strict mode, better docs, refactoring, support for negatives, protection against infinite loops, etc...

I am creating a pull request for...

  • New algorithm
  • Update to an algorithm
  • Fix an error
  • Other -...

"Collatz conjecture" is not a sequence. The standard-de-facto name convention is "Hailstone sequence", that's why I edited the comments.

I added JSdoc to explicitly specify the expected type of n, to reduce the likelihood of misuse of that function

Better docs, refactoring, support for negatives, protection against infinite loops, etc...
@Rudxain
Copy link
Author

Rudxain commented Sep 16, 2022

I haven't tested it yet, that's why it's a draft. Please be patient, I'll test later

@Rudxain Rudxain marked this pull request as ready for review September 17, 2022 15:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant