TANLA PLATFORMS Hiring | Count Words Obtained After Adding a Letter | On Campus Online Assessment (2024)
Question · Posted Jun 2026
Problem Statement You are given two string arrays: startWords targetWords A target word is considered reachable if it can be formed by: Taking any word from startWords. Adding exactly one new letter that does not already exist in the word. Rearranging the letters in any order. Return the number of words in targetWords that can be formed using this process. Input Format startWords[] – array of distinct lowercase English words. targetWords[] – array of distinct lowercase English words. Output Format ...
The full answer & interview discussion are available to premium members.
Log in Create a free account