---
title: "Discussion on \"Longest Repeating Character Replacement - LeetCode Problem\" | Hashnode"
description: "Discussion on \"Longest Repeating Character Replacement - LeetCode Problem\". To solve this problem, we will use a sliding window approach. We will consider a window of characters and try to expand it as much as possible."
url: "https://hashnode.com/posts/longest-repeating-character-replacement-leetcode-problem/6411b293a67c57978a6b6399"
---

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

Discussion

# [Longest Repeating Character Replacement - LeetCode Problem](https://blog.eyucoder.com/longest-repeating-character-replacement-leetcode-problem?utm_source=hashnode&utm_medium=feed)

To solve this problem, we will use a sliding window approach. We will consider a window of characters and try to expand it as much as possible.

Mar 15, 2023 · 3 min read · blog.eyucoder.com  
Read the article

-   [#sliding-window](https://hashnode.com/tag/sliding-window)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#python](https://hashnode.com/tag/python)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)

## Written by

[Eyuel Dan⭐⭐⭐](https://hashnode.com/@Eyuel)

@Eyuel

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

Android | Python | React | GPT

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
