Re:Ask HN: Joining Big Tech in One’s 40s
by 171243 on Tuesday January 07, 2020 @07:15PM
(#21986786)
input: "bcabc"
What am I missing?
[ Parent
| on HN ]
Re:Ask HN: Joining Big Tech in One’s 40s
by kangnkodos on Wednesday January 08, 2020 @12:47PM
(#21993824)
Take all the possible answers with duplicates removed, and return the first one in alphabetical order.
input: "bcabc"
output: "abc"
Re:Ask HN: Joining Big Tech in One’s 40s
by MaximumYComb on Tuesday January 07, 2020 @07:54PM
(#21987107)
Nothing. I hadn't fleshed out my idea yet and that's the error I thought could exist. My solution is wrong.
Re:Ask HN: Joining Big Tech in One’s 40s
by pizza_dave on Wednesday January 08, 2020 @02:56PM
(#21995102)
that is a single line of code in javascript, assuming you just want the value in #5
const foo = [...new Set('bcabc'.split(''))].join('')