Given two strings s and t, determine whether it is possible to transform s into t by applying the following operation any number of times:
Choose any contiguous substring of s and sort its characters in ascending order.
Return true if s can be transformed into t, or false otherwise.
Constraints:
s.length t.length
s.length
s and t consist of only digits.
Given two strings s and t, determine whether it is possible to transform s into t by applying the following operation any number of times:
Choose any contiguous substring of s and sort its characters in ascending order.
Return true if s can be transformed into t, or false otherwise.
Constraints:
s.length t.length
s.length
s and t consist of only digits.