Grokking Meta Coding Interview
0% completed
Alien Dictionary (hard)
.....
.....
.....
Like the course? Get enrolled and start learning!
A
Anonymous
· 3 years ago
Am I the only one who is challenged understanding the problem statement?
Show 1 reply
A
Anonymous
· 5 years ago
For lols, here's a wrong solution that returns the correct strings (bac, cab, ywxz)
function find_order(words) {
let letters = new Set()
for (const word of words) {
let characters = word.split('')
letters = new Set([...letters, ...characters])
}
return Array.from(letters).join('')
}
Obviously it doesn't solve anything :)
A
Anonymous
· 5 years ago
for alien dictionary, I believe they added extra test cases that makes this solution fail. I copy-pasted it over too
Show 6 replies
Reading Progress
0%