Given two strings s and t, determine whether s can be transformed into t in at most k moves.
In the
Select an index j (where s.length) that has not been chosen in any prior move, and shift the character s[j] forward in the alphabet cyclically by 'z' forward by 'a').
Skip the move and do nothing.
Return true if s can be transformed into t in at most k moves, or false otherwise.
Constraints:
s.length, t.length
k
s and t contain only lowercase English letters.
Given two strings s and t, determine whether s can be transformed into t in at most k moves.
In the
Select an index j (where s.length) that has not been chosen in any prior move, and shift the character s[j] forward in the alphabet cyclically by 'z' forward by 'a').
Skip the move and do nothing.
Return true if s can be transformed into t in at most k moves, or false otherwise.
Constraints:
s.length, t.length
k
s and t contain only lowercase English letters.