#dsa
Read more stories on Hashnode
Articles with this tag
Problem Link https://leetcode.com/problems/maximum-score-from-removing-substrings/description/ Approach If x > y we have to focus on making the "ab"...
Problem Link Click Here Approach First we will store the characters other than parenthesis because we don't want parenthesis in our answer. As soon...
Problem link Click here Approach Initially, when the chef is not doing anything and a customer arrives, the waiting time for the customer to get a...
Problem Link Click Here Approaches Approach 1 (Brute force) we will create one array/vector to store the values from 1 to n, representing the...
Problem Link Click Here Approach We need to calculate the maximum number of full water bottles we can consume right so let's consider one test...
NOTE - please read this article properly and solve the question twice once on paper and then on leetcode because this question serves as the...