Given an array of 0s and 1s in any order, find the longest sequence that has equal number of 0s and 1s.
0 0 0 0 1 1 1 1 0 0 //array 0 1 2 3 4 5 6 7 8 9 //index ans1 (0,7) ans2 (1,8) ans3 (2,9) all having 4 0's and 4 1's -- Regards, Ramkumar.G -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.