title: Printing Balanced Partition
body: <p>There are two arrays , say A &amp; B. There are n entries in each of them , now we want to get minimum difference if we select either of each A &amp; B for for ith entry. Exact problem <a href="http://opc.iarcs.org.in/index.php/problems/EQGIFTS" rel="nofollow">here</a> .</p>
  
  <p>I have done that problem,now if we add to print the the distribution ,then how to proceed ? We need to print A or B on every ith line depending that which of A or B we choose .
  Ex:n=4
  A:3,7 ,8,3
  B:5,11,8,9</p>
  
  <p>Then we need to print AAAB , we get diff. as 1.</p>