---
title: "Discussion on \"3223. Minimum Length of String After Operations\" | Hashnode"
description: "Discussion on \"3223. Minimum Length of String After Operations\". class Solution:\n    def minimumLength(self, s: str) -> int:\n        c = Counter(s)\n\n        def removals(n):\n            if n >= 3:\n                if n % 2 == 0 :\n                    return n - 2\n                return n - 1\n\n            return 0\n\n ..."
url: "https://hashnode.com/posts/3223-minimum-length-of-string-after-operations/678549cc56046abf95702b7d"
---

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

Discussion

# [3223\. Minimum Length of String After Operations](https://tapanrachchh.hashnode.dev/3223-minimum-length-of-string-after-operations?utm_source=hashnode&utm_medium=feed)

class Solution: def minimumLength(self, s: str) -> int: c = Counter(s) def removals(n): if n >= 3: if n % 2 == 0 : return n - 2 return n - 1 return 0 ...

Jan 13, 2025 · 1 min read · tapanrachchh.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#counting](https://hashnode.com/tag/counting)
-   [#hash-table](https://hashnode.com/tag/hash-table)

## Written by

[Tapan Rachchh](https://hashnode.com/@tapanrachchh)

@tapanrachchh

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
