Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 392 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 392 Bytes

pagopa-flatten

Question

Write some code that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4].

Installation and test

Requires Node.js to run.

Install the dependencies and devDependencies, compile with TypeScript and start the server.

cd pagopa-flatten
node flatten.js