Question: Question 3 ( 1 0 points ) Assume that two servers are communicating with each other in a ciphered language via string streams; that is
Question points
Assume that two servers are communicating with each other in a ciphered language via string streams; that is the messages are sent through without interruption. They utilize a specified sequence pattern to identify the position of the message start. This pattern is and your task is to find the location of this pattern in the given string patch. Your function takes a string patch and outputs the first location of the pattern that occurred in the patch. Note that indices start from for strings.
Contract
contract: findLocation: patchstring number
Examples
checkexpect findLocation "CDCBBDDDBCABCC"
checkexpect findLocation "ADDDAACBDDDDCAACD"
checkexpect findLocation "CAABDDDBACAAA"
U can only solve it with 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
