Count Asterisks Problem

Count Asterisks Problem — ExecCode Easy DSA Practice

Solve the Count Asterisks problem on ExecCode. Free online easy DSA practice in String. Write and run code in Java, C++, Python — no signup required to run.

Description You are given a string s, where every two consecutive vertical bars '|' are grouped into a pair. In other words, the 1^st and 2^nd '|' make a pair, the 3^rd and 4^th '|' make a pair, and so forth. Return the number of '' in s , excluding the '' between each pair of '…

Practice Count Asterisks free on ExecCode. Browse more ExecCode DSA problems.