Back to course home
0% completed
Vote For New Content
For lols, here's a wrong solution that returns the correct strings (bac, cab, yw...
Ray
Apr 18, 2022
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 :)
0
0
Comments
Comments
On this page