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.
Array Burst Problem
Given an input length, String array and burst length 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 :
Input :
a
b
c
c
c
d
e
e
Output:
a
b
d
e
e
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
