Your question is Find Letter Sequence in Array Objects. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
FloQast Close Management may represent a short event stream as an array of objects, where each object contains one letter. Given this array and a target sequence, return every starting index where the target appears as a contiguous sequence, including overlapping matches.
Implement find_sequence(records, target).
records is a list of dictionaries. Every dictionary contains a letter key whose value is a single-character string.target is a non-empty string.def find_sequence(records, target):