← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Given a list of words (a dictionary) and a single target string, determine whether the target can be formed by concatenating exactly two different words from the dictionary (the same word may be used twice only if it appears twice in the list). Return true if such a pair exists, otherwise return false.