Tap here to switch tabs
Problem
Submissions

Problem: Reconstruct Original Digits from English

Reconstruct Original Digits from English gives an out-of-order string made from digit names. Return the digits it represents as one string in ascending order.

Statement

Given a string s containing characters of English words representing digits from 00 to 99 in an out of order format, return the reconstructed digits in ascending order as a string.

Constraints:

  • 1≤1 \leq s.length ≤105\leq 10^5

  • s[i] is one of the characters ["e","g","f","i","h","o","n","s","r","u","t","w","v","x","z"].

  • s is guaranteed to be valid.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Reconstruct Original Digits from English

Reconstruct Original Digits from English gives an out-of-order string made from digit names. Return the digits it represents as one string in ascending order.

Statement

Given a string s containing characters of English words representing digits from 00 to 99 in an out of order format, return the reconstructed digits in ascending order as a string.

Constraints:

  • 1≤1 \leq s.length ≤105\leq 10^5

  • s[i] is one of the characters ["e","g","f","i","h","o","n","s","r","u","t","w","v","x","z"].

  • s is guaranteed to be valid.