Array- longest subset with equal number of 0's and 1's


#1

Question:- We have to return the longest subset in an array with equal number of 0’s and 1’s in a binary array…