[LeetCode] 2859. Sum of Values at Indices With K Set Bits
You are given a 0-indexed integer array nums and an integer k. Return an integer that denotes the sum of elements in nums whose corresponding indices have exactly k set bits in their binary representa