News for hackers. Stuff that matters.
Re:Ask HN: Joining Big Tech in One’s 40s by jfk13 on Tuesday January 07, 2020 @06:30PM (#21986444)
Won't that give you the letters in alphabetical order, which may not be correct? See example 2 on the problem page.
Re:Ask HN: Joining Big Tech in One’s 40s by krn on Tuesday January 07, 2020 @07:23PM (#21986862)
> Won't that give you the letters in alphabetical order, which may not be correct?

But that's what "lexicographical" means?

> In mathematics, the lexicographical order is a generalization of the way words are alphabetically ordered based on the alphabetical order of their component letters.

> This generalization consists primarily in defining a total order on the sequences (often called strings in computer science) of elements of a finite totally ordered set, often called an alphabet.

https://en.wikipedia.org/wiki/Lexicographical_order

Re:Ask HN: Joining Big Tech in One’s 40s by Twisol on Tuesday January 07, 2020 @10:46PM (#21988085)
I think the problem statement wants the lexicographically least string of those obtainable by deleting characters.