Conversation

Rudxain

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

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

@RudxainRudxain marked this pull request as ready for review September 17, 2022 15:05
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

@Rudxain