- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
StairCase - Recursion Approach
This video attempts to explain how to solve the staircase questions using a recursive approach. This is PART 2 of the StairCase Algorithm.
Question.
There exists a staircase with N steps, and you can climb up either 1 or 2 steps at a time. Given N, write a function that returns the number of unique ways you can climb the staircase. The order of the steps matters.
For example, if N is 4, then we have 5 unique ways
i.e. 1, 1, 1, 1 and 2, 1, 1 and 1, 2, 1 and 1, 1, 2 and 2, 2
If you found it educative do subscribe, like and share.
Видео StairCase - Recursion Approach канала esSolutions
Question.
There exists a staircase with N steps, and you can climb up either 1 or 2 steps at a time. Given N, write a function that returns the number of unique ways you can climb the staircase. The order of the steps matters.
For example, if N is 4, then we have 5 unique ways
i.e. 1, 1, 1, 1 and 2, 1, 1 and 1, 2, 1 and 1, 1, 2 and 2, 2
If you found it educative do subscribe, like and share.
Видео StairCase - Recursion Approach канала esSolutions
Комментарии отсутствуют
Информация о видео
25 сентября 2021 г. 10:24:42
00:23:52
Другие видео канала




















