Jio SDE OA 2024 | Maximize Network Points & JioFiber Grid Routing
Jio · Question · Posted Jun 2026
Problem 1 - Maximize Network Points Problem Statement You are given a data stream represented as a string s. You can repeatedly remove the following substrings: "ab" → gain x points "ba" → gain y points After removing a substring, the remaining characters concatenate together. You may perform removals in any order and any number of times. Find the maximum points obtainable. Constraints Constraint 1 ≤ s.length ≤ 105 1 ≤ x, y ≤ 104 s consists primarily of characters ...
The full answer & interview discussion are available to premium members.
Log in Create a free account