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 hintsTopics
More Infosys Questions
Palindrome NumberEasyLargest Number After Mutating SubstringMediumGas StationMediumMaximum Product After K IncrementsMediumCount the Number of Ideal ArraysHard
View all Infosys questions