Post History
Vyxal, 4 bytes KƛtO Try it Online! Explained KƛtO Kƛ # For each prefix of the input tO # How many times does the tail occur in the prefix?
Answer
#1: Initial revision
# [Vyxal](https://github.com/Vyxal/Vyxal), 4 bytes ``` KƛtO ``` [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCJLxpt0TyIsIiIsIlsxLDEsMiwyLDIsMSwxLDEsMywzXSJd) ## Explained ``` KƛtO Kƛ # For each prefix of the input tO # How many times does the tail occur in the prefix? ```