Weird Algorithm - Cses
Problem Statement:
Consider an algorithm that takes as input a positive integer. If it is even, the algorithm divides it by two, and if it is odd, the algorithm multiplies it by three and adds one. The algorithm repeats this until it is one.
For exam...
ramandeepsingh.hashnode.dev1 min read