A furnishing company is manufacturjng a new collection of curtains. The curtains are of two colors aqua(a) and blackfb). The curtains color is represented as a string (str). OAsisting of a's and b's...


Please need this code in python. Make sure all test cases is 100% matching


A furnishing company is manufacturjng a new collection<br>of curtains. The curtains are of two colors aqua(a) and<br>blackfb). The curtains color is represented as a string (str).<br>OAsisting of a's and b's of length N. Then, they are<br>packed (substring) into Lnomber of curtains in each box.<br>The box with the maximum number of 'aqua(a) color<br>curtains is labeled. The task here is to find the number of<br>'aqua' color curtains in the labeled box.<br>Note:<br>If 'L' is not a multiple of N, the remaining number of<br>curtains should be considered as a substring too. In<br>simple words, after dividing the curtains in sets of L', any<br>Example-1:<br>Input:<br>- value of str<br>value of L<br>bbbaaababa<br>3<br>Output:<br>-Maximum number of a's<br>3<br>Explanation:<br>From the input given above,<br>Dividing the string into sets of 3 characters each<br>Set 1: (b.b.b}<br>Set 2:(a,a.a}<br>1080<br>763116<br>

Extracted text: A furnishing company is manufacturjng a new collection of curtains. The curtains are of two colors aqua(a) and blackfb). The curtains color is represented as a string (str). OAsisting of a's and b's of length N. Then, they are packed (substring) into Lnomber of curtains in each box. The box with the maximum number of 'aqua(a) color curtains is labeled. The task here is to find the number of 'aqua' color curtains in the labeled box. Note: If 'L' is not a multiple of N, the remaining number of curtains should be considered as a substring too. In simple words, after dividing the curtains in sets of L', any Example-1: Input: - value of str value of L bbbaaababa 3 Output: -Maximum number of a's 3 Explanation: From the input given above, Dividing the string into sets of 3 characters each Set 1: (b.b.b} Set 2:(a,a.a} 1080 763116
put given above,<br>Output:<br>Tor your prop<br>Explanation:<br>Maximum number ora's<br>Set 1: {b,b.b}<br>s characters each:<br>Set 2:{a,a,a}<br>Set 3:{b,a,b}<br>Set 4:{a}<br>75 631161_<br>- leftover characters also as taken as<br>another set<br>Among all the sets, Set 2 has more number of a's. The<br>number of a's in Set 2 is 3.<br>the output is 3.<br>Input:<br>abbbbaabbb value of str<br>value of L<br>Output:<br>-Maximum number of a's<br>Explanation:<br>From the input given above,<br>Dividing the string into sets of 5 characters each:<br>Set 1: {a,b,b,b,b}<br>Set 2:{ a,a,b.b.b}<br>Among both the sets, Set 2 has more number of a's. The<br>1080<br>FULL<br>HD<br>757631161 73<br>161<br>

Extracted text: put given above, Output: Tor your prop Explanation: Maximum number ora's Set 1: {b,b.b} s characters each: Set 2:{a,a,a} Set 3:{b,a,b} Set 4:{a} 75 631161_ - leftover characters also as taken as another set Among all the sets, Set 2 has more number of a's. The number of a's in Set 2 is 3. the output is 3. Input: abbbbaabbb value of str value of L Output: -Maximum number of a's Explanation: From the input given above, Dividing the string into sets of 5 characters each: Set 1: {a,b,b,b,b} Set 2:{ a,a,b.b.b} Among both the sets, Set 2 has more number of a's. The 1080 FULL HD 757631161 73 161
Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here