---
title: "Discussion on \"1400. Construct K Palindrome Strings\" | Hashnode"
description: "Discussion on \"1400. Construct K Palindrome Strings\". class Solution:\n    def canConstruct(self, s: str, k: int) -> bool:\n        l = len(s)\n\n        if l < k:\n            return False\n\n        if l == k:\n            return True\n\n        c = Counter(s)\n\n        oddCount = 0\n        for e in c:\n         ..."
url: "https://hashnode.com/posts/1400-construct-k-palindrome-strings/678213de2a7aa6895e1c5460"
---

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

Discussion

# [1400\. Construct K Palindrome Strings](https://tapanrachchh.hashnode.dev/1400-construct-k-palindrome-strings?utm_source=hashnode&utm_medium=feed)

class Solution: def canConstruct(self, s: str, k: int) -> bool: l = len(s) if l < k: return False if l == k: return True c = Counter(s) oddCount = 0 for e in c: ...

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

-   [#python](https://hashnode.com/tag/python)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#string](https://hashnode.com/tag/string)
-   [#palindrome](https://hashnode.com/tag/palindrome)
-   [#hashmap](https://hashnode.com/tag/hashmap)
-   [#counting](https://hashnode.com/tag/counting)
-   [#greedy](https://hashnode.com/tag/greedy)

## Written by

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

@tapanrachchh

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
