Question: Write code in python laong with the logic and explanation. 1 . Array Burst Problem Given an input length, String array and burst length (

Write code in python laong with the logic and explanation.
1. Array Burst Problem
Given an input length, String array and burst length(>0) as input, the output should be an array which is a shrunk input array such that the sequentially repeating elements more than or equal to burst length should be removed. This has to be repeated till the array cannot be shrunk any further. Use single characters in the string array for simplicity as shown in sample test cases.
Sample case 1 :
Input :
8
a
b
c
c
c
d
e
e
3
Output:
a
b
d
e
e

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!