Previous question · 446
Unique Elements in Order
easyAlgorithms
Next question · 448
Domino and Tromino Tiling
mediumAlgorithms
Random coding question

447. Flatten Nested List

easy
GeneralGeneral
entry
Function contract
Inputs
lists
list
Returns
value
list

Examples

Input
{
  "lists": [
    [
      1,
      2,
      3
    ],
    [
      4,
      5
    ],
    [
      6
    ]
  ]
}
Output
[
  1,
  2,
  3,
  4,
  5,
  6
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
Software Engineer
ML Engineer
Data Engineer
Quantitative Researcher
Research Scientist
Companies
GeneralGeneral
Levels
entry
Tags
python

Similar Questions

Custom Sort Stringmedium
Algorithms
Number of 1 Bitseasy
Algorithms
Letter Case Permutationmedium
Algorithms
14 people are solving this problem
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATAINTERVIEW
Interactive coding terminal
Python environment ready.
Type a command below or run code from the editor.
run scriptExecute the current editor contents
submitGrade the current editor contents against all solution test cases
python ("print hello world")Run an isolated Python command
helpShow all available commands