2055. Plates Between Candles
Medium
Input: s = "**|**|***|", queries = [[2,5],[5,9]]
Output:
[2,3]
Explanation:
- queries[0] has two plates between candles.
- queries[1] has three plates between candles.Input: s = "***|**|*****|**||**|*", queries = [[1,17],[4,5],[14,17],[5,11],[15,16]]
Output:
[9,0,0,0,0]
Explanation:
- queries[0] has nine plates between candles.
- The other queries have zero plates between candles.Last updated

