n Go home
p Go here
y Copy URL
c Copy content
d Download
q Show QR code
? Toggle help
1# LC6166 Longest Repeating Character Replacement
2
3**Idea.** maxfreq window.
4
5**Checklist**
6- Clarify constraints and edge cases first
7- Name the pattern (two pointers / DP / graph / binary search)
8- Walk one example end-to-end before coding
9- State time/space; watch off-by-one
10
11*Disclosure: I help build [https://www.linkjob.ai/](https://www.linkjob.ai/) — an interview prep copilot. Notes are my own study notes.*