Challenge: Word Formation Using a Hash Table
Try to solve the Word Formation Using a Hash Table problem.
Statement
Given an array of words wordsArray
, determine whether a given target
can be formed by combining two words from the array in any order.
Constraints:
2
wordsArray.length
1
wordsArray[i].length
2
target.length
All words consist of lowercase English letters
Examples
Access this course and 1400+ top-rated courses and projects.