Recursion | Interview Question | Flatten List

Published: 26 September 2019
on channel: 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]


On this page of the site you can watch the video online Recursion | Interview Question | Flatten List with a duration of hours minute second in good quality, which was uploaded by the user Usman Abbasi 26 September 2019, share the link with friends and acquaintances, this video has already been watched 2,542 times on youtube and it was liked by 49 viewers. Enjoy your viewing!