3 ms·
This is pretty easy actually: since the question is horribly vague on what the input type actually IS, I'm going to just assume it's a string. So flatttening t
by alkonaut 10y ago
This is pretty easy actually: since the question is horribly vague on what the input type actually IS, I'm going to just assume it's a string.
So flatttening the list is just a string split on all delimiters. Done.
My Java is rusty but something like input.split("\[\],"). Done.
It's an answer of exactly the same quality as the question...