Recursion | Interview Question | Flatten List

Publicado el: 26 septiembre 2019
en el canal de: 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]


En esta página del sitio puede ver el video en línea Recursion | Interview Question | Flatten List de Duración hora minuto segunda en buena calidad , que subió el usuario Usman Abbasi 26 septiembre 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,542 veces y le gustó 49 a los espectadores. Disfruta viendo!