News

Input : array = [2, 10, 12, 26, 3, 22, 2] Output : 2 Explanation : We need to merge 10 and 22 so, the array will become [2, 22, 26, 3, 22, 2]. Again we will merge 26 and 3 so the array becomes [2, 22, ...