lots of exercises in java... from https://github.com/exercism/java
Katrina Owen 879b1ec51b Replace exercise templates with track-level default 9 år sedan
..
src Remove starter implementations (#681) 9 år sedan
README.md Replace exercise templates with track-level default 9 år sedan
build.gradle Format build.gradle files 9 år sedan

README.md

Flatten Array

Take a nested list and return a single flattened list with all values except nil/null.

The challenge is to write a function that accepts an arbitrarily-deep nested list-like structure and returns a flattened structure without any nil/null values.

For Example

input: [1,[2,3,null,4],[null],5]

output: [1,2,3,4,5]

To run the tests:

$ gradle test

For more detailed info about the Java track see the help page.

Source

Interview Question https://reference.wolfram.com/language/ref/Flatten.html

Submitting Incomplete Solutions

It's possible to submit an incomplete solution so you can see how others have completed the exercise.