Question: Question 4 ( 1 0 points ) Another pattern is found to be critical for the communication of the above servers. This pattern is CDA,
Question points
Another pattern is found to be critical for the communication of the above servers. This pattern is CDA, and your task is to count how many times servers used this pattern in a fragment of their communication. Your function takes a string patch and outputs how many CDA occurred in the patch.
Contract
contract: countPattern: patchstring number
Examples
checkexpect countPattern "BACCDACBABBCCABCCDABDADCDAABC"
checkexpect countPattern "ACACCDAACDAAAABBCCDACCCDCAABD"
checkexpect countPattern "BCACDABCDDCACDBDDBDCACDBCDABC"You can only use this List of available functionS
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
