Directional Character Count Sum
Filed under ZopSmart
The question
Given a string of 'L' and 'R' characters, for each element count the number of elements on its left if it's 'L' and on its right if it's 'R', and return the sum of counts for all elements.
No write-up yet. Related questions below have one.
Related ZopSmart questions
Collected from public candidate posts and coding forums. Updated Nov 2026.