You are given a string s of lowercase English letters and a shifts, where each element shifts[i] start_i, end_i, direction_i
For every operation in shifts:
If direction_i s from index start_i to index end_i (inclusive) forward by 'z' becomes 'a'.
If direction_i s from index start_i to index end_i (inclusive) backward by 'a' becomes 'z'.
Return the final string after all the shifts have been applied to s.
Constraints:
s.length, shifts.length
shifts[i].length
start_i end_i s.length
direction_i
s consists of lowercase English letters.
You are given a string s of lowercase English letters and a shifts, where each element shifts[i] start_i, end_i, direction_i
For every operation in shifts:
If direction_i s from index start_i to index end_i (inclusive) forward by 'z' becomes 'a'.
If direction_i s from index start_i to index end_i (inclusive) backward by 'a' becomes 'z'.
Return the final string after all the shifts have been applied to s.
Constraints:
s.length, shifts.length
shifts[i].length
start_i end_i s.length
direction_i
s consists of lowercase English letters.