← ALL NOTES
Array

2381. Shifting Letters II

Given a string s and a list shifts where shift = [start, end, direction]: direction=1 shifts every letter in s[start..end] forward in the alphabet (cyclically), direction=0 shifts backward. Apply all…

Loading…