HF RL Explorer

Task: Count String Occurrence in String

Task: Count String Occurrence in String: a task in Terminal-Lego-15k (Harbor dataset). Create a JavaScript solution that counts the number of times a particular substring occurs within another string.

The task

Create a JavaScript solution that counts the number of times a particular substring occurs within another string.

Part of PrimeIntellect/Terminal-Lego-15k.