gfg

[Solved] K Sum Contest Problem

[Solved] K Sum Contest Problem

You are given an array of integers. Find the sum of first K smallest numbers. K Sum Contest Problem Input : First line of input contains number of testcases T. The 1st line of each testcase contains a two integers N denoting the number of elements…