โ† Informatica questions

Subset with minimum numbers summing to K

Filed under Informatica

Given an array of integers and a target sum K, return the minimum number of elements needed to form a subset that sums up to K. If it is not possible, return -1.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Informatica questions

Collected from public candidate posts and coding forums. Updated Nov 2026.