ProGrad Programs
Placement Prep
Discussion Forum
About Us



  1. Home
  • Add an Event
  • Add an Interview Experience
  • Add a Discussion
Data Arrangements

Given an array containing only 0s and 1s, find the largest subarray which contain equal no of 0s and 1s. Examples: Input: arr[] = {1, 0, 1, 1, 1, 0, 0} Output: 1 to 6 (Starting and Ending indexes of output subarray) Input: arr[] = {1, 1, 1, 1} Output: No such array Input: arr[] = {0, 0, 1, 1, 0} Output: 0 to 3 Or 1 to 4 Input Format Input contains the no of elements & array values Constraints 1 d array_size d 10000 Output Format Print the index i1->in if exist else print No such array . If more than 1 found print all Sample Input 0 7 1 0 1 1 1 0 0 Sample Output 0 1->6

saipradeep 5 months ago
send me link bro
Sourav Paul 6 months ago
check here.All materials available
Ankit Singh 7 months ago
please send me too at
Aditi Sharma 8 months ago
Me iam 1 year ago
Share tricks ,pattern,and cutoff about the test

Read the following instructions carefully and answer the questions given below it: From a group of six boys M,N,O,P,Q,R and five girls G,H,I,J,K a team of six is to be selected .Some of the criteria of selection are as follows: M and J go together O cannot be placed with N I cannot go with J N goes with H P and Q have to be together K and R go together

1 Comment
deepak mikkilineni 1 year ago
HENCE M and J go together
O is with J is posssible
J is with N is posssible
N goes with H
P and Q have together
k and R together