Recursion | Interview Question | Flatten List

Опубликовано: 26 Сентябрь 2019
на канале: Usman Abbasi
2,542
49

DON'T FORGET TO LIKE AND SUBSCRIBE! :)

Complete Playlist Cracking the Coding Interview:    • Cracking the Coding Interview: Check if St...  

In this video we will solve a problem using Recursion which I was asked in an interview for a company in Germany.

Problem Statement:
Given a list which can contain integers and nested list of integers, write a function to flatten the list and return the values from all the nested lists in one flat list.

Example Input: [1,2,3,[3,-1,2,[3,40]],14]

Example Output: [1,2,3,3,-1,2,3,40,14]


На этой странице сайта вы можете посмотреть видео онлайн Recursion | Interview Question | Flatten List длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Usman Abbasi 26 Сентябрь 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,542 раз и оно понравилось 49 зрителям. Приятного просмотра!