Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

1160 - Find Words That Can Be Formed by Characters #528

@dangerworm

Description

@dangerworm

Description of the Problem

You are given an array of strings words and a string chars.

A string is good if it can be formed by characters from chars (each character can only be used once).

Return the sum of lengths of all good strings in words.

Code

class Solution:
    def countCharacters(self, words: List[str], chars: str) -> int:

Link To The LeetCode Problem

LeetCode 1160

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions