Do you know Collatz conjecture? Click here, You can read some details..
Given the following algorithm
If number x is even, x = x / 2
else if x is odd, x = x * 3 + 1
Find all the numbers which resolve to a specified number (y) when the algorithm is applied a specified number of times (n).
Sort the results in ascending order.
For example:
Find all the numbers which resolve to 1 (y = 1) after 5 applications of the algorithm (n = 5).
(in accordance with the rules of the Collatz conjecture)
This comment is hidden because it contains spoiler information about the solution
those magic numbers tho
Why not?
There is no exact rule about const
JS: Node v12 should be used enabled along with its appropiate assertion tools (Mocha + Chai).
OK, I think this is a simple way to help me to improve the descrption(I'm a lazy man, I love copy&paste ;-)
I think I made it worse :(
How about:
Do you know Collatz conjecture? Click here, You can read some details..
Given the following algorithm
Find all the numbers which resolve to a specified number (y) when the algorithm is applied a specified number of times (n).
Sort the results in ascending order.
For example:
Find all the numbers which resolve to 1 (y = 1) after 5 applications of the algorithm (n = 5).
(in accordance with the rules of the Collatz conjecture)
4 -> 2 -> 1 -> 4 -> 2 -> 1
5 -> 16 -> 8 -> 4 -> 2 -> 1
32 -> 16 -> 8 -> 4 -> 2 -> 1
OK, I modified the description(Even though I don't fully understand what it means ;-). How about the new description?
Yes,I can see the image now, let me look into it..
try http://i1044.photobucket.com/albums/b450/goofballlogic/nimbus-image_zpscx3jctwp.png ?
Soooorry, I can't open your link, because I come from China, a lot of link often like this(can not open and view)
I added some suggestions here: http://nimb.ws/wxWYl6 (links to google drive image)
I don't know which part is unclear, about Collatz conjecture or Kata's task?
Formatting of the description is very hard to grok. Need to work on presentation.
Going to not complete this on purpose :) Bad kata i think.