Code Wars C# 6 kyu: Collatz

preview_player
Показать описание
Beginner level C# object oriented programming series. Viewers are provided an integer that is the start of a Collatz sequence. They must return as a string all values of the sequence starting from the input value, separated by arrow symbols. The Collatz sequence is defined by x / 2 when x is even, and 3 * x + 1 when n is odd. The sequence terminates upon reaching 1. I'll show both a recursive solution and an iterative one.

Рекомендации по теме
Комментарии
Автор

I m currently at 4kyu with 797 points. Didn t code for a while but since Im watching ur clips I started again trying to solve some problems on codewars. Can t wait to see more 5kyu or lower

isen