Is there a pattern or way to recognize when we should use the "left and right array" technique?
Question examples: