Question: I need help because each run can only have a value of 15 so when it reaches 15 it will restart and match the example


I need help because each run can only have a value of 15 so when it reaches 15 it will restart and match the example above. Thank you! In python please!
count_runs(flat_data) Returns number of runs of data in an image data set; double this result for length of encoded (RLE) list. Ex: count_runs ([15,15,15,4,4,4,4,4,4]) yields integer 2 . 1. count_runs - input: [4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,8,7] - output: 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
