Skip to content

Latest commit

 

History

History
73 lines (35 loc) · 1007 Bytes

File metadata and controls

73 lines (35 loc) · 1007 Bytes

中文文档

Description

Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order.

Note:

  1. Input contains only lowercase English letters.
  2. Input is guaranteed to be valid and can be transformed to its original digits. That means invalid inputs such as "abc" or "zerone" are not permitted.
  3. Input length is less than 50,000.

Example 1:

Input: "owoztneoer"



Output: "012"

Example 2:

Input: "fviefuro"



Output: "45"

Solutions

Python3

Java

...