Skip to content

countnoobula/hailstone-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

hailstone-problem

Thoughts during development

  • int is 32bit, so at around 130000, it would overflow and take it back to the start. Therefore needed to use a long.
  • Recursion caused a stackoverflow around the same point, easiest solution was to use a while loop.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages