|
|
|
|
|
by brudgers
3402 days ago
|
|
It does not really test potential because a junior trained in Java has poor tools for flattening a list because idiomatic Java would not represent hierarchical data structure as a nested list. Idiomatic Java would use tree and node objects. Idiomatic Java also prefers arrays over lists for sequential data. An experienced programmer might look at the problem and choose a better tool: a different language or call a service or rewrite the offending code that produces a nested list or any one of a dozen things that are not bashing away with the hammer of Java. |
|
Come on, you are not going to call Haskell or Python to flatten a list in your Java.
> or call a service
I know we have "micro" services now, but really? Sending serialized data to ListFlatteningService to get deserialized FlattenedList?
> or rewrite the offending code
Something may produce it because it makes sense it its context, while it doesn't for you. No offence here.