#302. countCode
countCode
Background
Description
Return the number of times that the string "code" appears anywhere in the given string, except we'll accept any letter for the 'd', so "cope" and "cooe" count.
Format
Input
Output
Samples
aaacodebbb
1
codexxcode
2
cozexxcope
2
Limitation
1s, 1024KiB for each test case.