---
title: "Discussion on \"LeetCode #1717 Maximum Score From Removing Substrings\" | Hashnode"
description: "Discussion on \"LeetCode #1717 Maximum Score From Removing Substrings\". You are given a string s and two integers x and y. You can perform two types of operations any number of times.\n\nRemove substring \"ab\" and gain x points.\n\nFor example, when removing \"ab\" from \"cabxbae\" it becomes \"cxbae\".\n\n\nRemove substring \"ba\" and ..."
url: "https://hashnode.com/posts/leetcode-1717-maximum-score-from-removing-substrings/6691938a2e73518ecf74cc09"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LeetCode #1717 Maximum Score From Removing Substrings](https://nobleknight.hashnode.dev/leetcode-1717-maximum-score-from-removing-substrings?utm_source=hashnode&utm_medium=feed)

You are given a string s and two integers x and y. You can perform two types of operations any number of times. Remove substring "ab" and gain x points. For example, when removing "ab" from "cabxbae" it becomes "cxbae". Remove substring "ba" and ...

Jul 12, 2024 · 3 min read · nobleknight.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[Ajay Dandge](https://hashnode.com/@nobleknight)

@nobleknight · India

  
[View profile](https://hashnode.com/@nobleknight)

Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
