Skip and Multiply
Mouthful description; easy once you unpack it.\n\nC++\ncpp\nint numberOfBeams(vector<string>& bank) {\n    int prev = 0, res = 0;\n    for (auto &r : bank) {\n 
Mouthful description; easy once you unpack it.\n\n**C++**\n```cpp\nint numberOfBeams(vector<string>& bank) {\n    int prev = 0, res = 0;\n    for (auto &r : bank) {\n        int cur = count(begin(r), end(r), \'1\');\n        if (cur) {\n            res += prev * cur;\n            prev = cur;\n        }\n    }\n    return res;\n}\n```
['C']