Solving Find Words That Can Be Formed by Characters in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

Example 1:

Input: words = ["cat","bt","hat","tree"], chars = "atach"
Output: 6
Explanation: 
The strings that can be formed are "cat" and "hat" so the answer is 3 + 3 = 6.

Example 2:

Input: words = ["hello","world","leetcode"], chars = "welldonehoneyr"
Output: 10
Explanation: 
The strings that can be formed are "hello" and "world" so the answer is 5 + 5 = 10.

Note:

  1. 1 <= words.length <= 1000

  2. All strings contain lowercase English letters only.

  3. 1 <= words.length <= 1000

See the full details of the problem Find Words That Can Be Formed by Characters at LeetCode

Originally posted at: @github.com/halfrost/LeetCode-Go