public static void main(String args[]){
        int arr[] = {0,0,0,1,0,1,0,0,1,0,0,0};
        LargestSubArrayWithEqual0sAnd1s mse = new LargestSubArrayWithEqual0sAnd1s();
        System.out.println(mse.equalNumber(arr));
    }
http://www.geeksforgeeks.org/largest-subarray-with-equal-number-of-0s-and-1s/
Test cases
Starting with either 0 or 1
Maximum length of 0 1 2 or more
src/com/interview/array/LargestSubArrayWithEqual0sAnd1s.java