Tap here to switch tabs
Problem
Submissions

Problem: Reconstruct Original Digits from English

med
30 min
Try to solve the Reconstruct Original Digits from English problem.

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

med
30 min
Try to solve the Reconstruct Original Digits from English problem.

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.