Boys and Girls – SPOJ problem
This problem is from SPOJ. Please follow this link if you want to try on your own! The problem is as follows. Given some number of boys and girls, we have to arrange them in a row such that the same gender appear together is minimized. We have to find the minimum number of any…