Once you have the left_count and right_count arrays, iterate through the original array indices and sum them up:
$$ \textResult[i] = \textleft_count[i] + \textright_count[i] $$
If you want to build your own Index of Monk—whether for your computer desktop, your notebook, or your daily schedule—you need to adopt three ancient disciplines. index of monk
You cannot index a chaotic mind. The second pillar is environmental control. The monk’s power comes from the absence of interruption. Once you have the left_count and right_count arrays,
The practice: Create a "Scriptorium Hour" every day. For 60 minutes, silence every notification. Close the browser tabs. Put on noise-canceling headphones. During this hour, you are not “working.” You are arranging. You are moving the inbox items into their permanent, indexed home. If you want to build your own Index
Liu Kang is arguably the patron saint of the Index. He is the classic "chosen one" archetype. For decades, he has been the fire-wielding, dragon-tossing face of monastic badassery. Whether he is a mortal monk saving Earthrealm or the God of Fire resetting the timeline, Liu Kang represents the perfect balance of heroism and brutality. He is the standard by which other video game monks are judged.