694

The Collatz Sequence
Type:
General
Diff:2.0

Tricks

I have tried this problem a lot and got accepted when I use do-while loop instead of while. I do not know where the hint is given in the problem. I also use long long as data type to make my code just simple. Oooooo..... , here you have to maintain another thing. You have to output the i and j as they appear in the input.

Related Problems & Topics

100 The 3n + 1 problem   

If you have any advice, complements 

or proposal, please  Send mail to Author

Submit

 

1