Find the Minimum Possible Sum of a Beautiful Array at Infosys

Medium35.2% acceptance

This problem has 75.0% frequency at Infosys.

Problem Description

You are given positive integers `n` and `target`. An array `nums` is **beautiful** if it meets the following conditions: * `nums.length == n`. * `nums` consists of pairwise **distinct** **positive** integers. * There doesn't exist two **distinct** indices, `i` and `j`, in the range `[0, n -...

Read full problem and hints

Topics


More Infosys Questions

View all Infosys questions