sequence

CF

Max Streak Winning Sequence

Alok is playing N round of card games with his friend Brinda. He gets postive or negative points based on whether he won or lost in a specific…
CF

Collatz Sequence

number N is passed as the input. The program must print the number of steps required for the program to reach Collatz sequence (that is reach…
PythonF

Fibonacci Sequence

An integer value N is passed as the input. The program must print the first N terms in the Fibonacci sequence. Input Format: The first line…
PythonF

Infinite Sequence Nth Digit

Infinite Sequence Nth Digit: The program must accept an integer value N and print the Nth digit in the integer sequence 1, 2, 3, 4, 5, 6, 7,…