https://www.facebook.com/hackercup/problem/1527664744192390/
I know how to solve this problem using Dp and greedy. But I am interested in knowing how to solve this problem using Maxflow. Can someone please help me out?
Facebook HackerCup: Problem 2
https://www.facebook.com/hackercup/problem/1527664744192390/
I know how to solve this problem using Dp and greedy. But I am interested in knowing how to solve this problem using Maxflow. Can someone please help me out?