Link to Contest: https://www.codechef.com/CMEL2018 Candy Love: Link to problem: https://www.codechef.com/CMEL2018/problems/CNDLOVE Problem Description: Given N numbers. We are supposed to arrange all those N numbers into two piles such that the difference of the sum between the two piles is 1. We can split a number and distribute it to different piles. Constraints: 1 <= N …

Continue reading "Code Melange Write Up"