DhanushNehru / Hacktoberfest2024

Hacktoberfest 2024 OPEN FIRST Pull Request - SUPPORT OPEN SOURCE - Don't forget to spread love and if you like give us a ⭐️
84 stars 520 forks source link

Longest Subsequence With Limited Sum #439

Open Ghanshyam-07 opened 2 weeks ago

Ghanshyam-07 commented 2 weeks ago

I have added a new problem titled "Rank Transform of an Array" along with its solution. The problem involves finding the array answer of length m where answer[i] is maximum size of a subsequence that you can take from nums such that the sum of its elements is less than or equal to queries[i], where queries and nums are interger array . Utilizing Shorting and Prefix-Sum to optimize the solution. I request you to add it to the repository, followed all the guideline correctly.