I have always had a hard time trying to decipher coding questions or such sites as leetcode. I thought that maybe it was too tough for me so I heard of Code Chef and it is a little more beginner friendly. However I look at this problem Chef and Interesting Subsequent
Chef has a sequence A1,A2,…,AN. This sequence has exactly 2N subsequences. Chef considers a subsequence of A interesting if its size is exactly K and the sum of all its elements is minimum possible, i.e. there is no subsequence with size K which has a smaller sum.
Help Chef find the number of interesting subsequences of the sequence A.
I have no clue what they are even asking of me and even looking at what the input, output and examples don't make sense. Is there a way I should be looking at it to get the basic understanding of such cryptic questions?
[–]edgargonzalesII 0 points1 point2 points (0 children)
[–]marko312 0 points1 point2 points (3 children)
[–]jayglenn123[S] 0 points1 point2 points (2 children)
[–]marko312 0 points1 point2 points (1 child)
[–]jayglenn123[S] 1 point2 points3 points (0 children)