Skip to content

Instantly share code, notes, and snippets.


Rafael Santiago rmxsantiago

Block or report user

Report or block rmxsantiago

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rmxsantiago /
Created Jul 28, 2015
Problem: 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].
import java.util.ArrayList;
import java.util.List;
public class FlattenArray {
public static void main(String[] args) {
/** Array to be flattened **/
/*Object[] inputArray = new Object[]{
You can’t perform that action at this time.