Sakshi Koshta has Published 25 Articles

Queries To Evaluate The Given Equation In A Range [L,R]

Sakshi Koshta

Sakshi Koshta

Updated on 10-May-2023 16:23:51

183 Views

The evaluation of all equation in an interval [L, R] give us a range of values for those variables. Examples of how this may be used include modelling, data analysis, and problem-solving scenarios. In this situation, we define equations variable values for all point in range. Hence can be done ... Read More

Find Values after N Operations to Remove N Characters of String ‘S’ With Given Constraints

Sakshi Koshta

Sakshi Koshta

Updated on 10-May-2023 16:19:14

248 Views

What are the Specifications of Using String? To solve a specific challenge involving the given string S. The string S contains only lowercase English letters, and certain constraints must be followed while removing characters. The given constraints are − There are lowercase English letters in string S. A character ... Read More

Sum of Indices of Characters Removed to Obtain an Empty String Based On Given Conditions

Sakshi Koshta

Sakshi Koshta

Updated on 10-May-2023 16:16:46

158 Views

String manipulation-related concepts like The Sum of indices of Characters deleted to obtain an Empty String are frequently utilized in programming challenges and competitions. The result is then computed using the sum of the eliminated characters' indexes. The Sum of indices of Characters deleted to obtain an Empty String is ... Read More

Queries to find Kth Greatest Character In A Range [L,R] From A String With Updates

Sakshi Koshta

Sakshi Koshta

Updated on 10-May-2023 16:13:37

339 Views

The Fenwick Tree is a type of data structure, which enables range updates and range searches with O(log n) time complexity, also called as binary indexed tree (BIT) The fundamental concept is to keep frequency array for every letter in string, with frequency of i-th character being recorded at index ... Read More

Queries to count array elements greater than or equal to given number with updates

Sakshi Koshta

Sakshi Koshta

Updated on 10-May-2023 16:09:32

728 Views

An array can be successfully updated and put through to range queries thanks to segment trees. With updates, we can use data structure known segment tree to count no. of elements in Array which are larger than or same as no. Query − Find out how many items exist ... Read More

Advertisements