Need Java Solution: Winter is the most chilling time of all the seasons. In Winter the food options are on the top so in this series Our Top Chef Alain Ducasse Introduce a new meal called Cube Cake As...


Need Java Solution:<br>Winter is the most chilling time of all the seasons. In Winter the food options are on the top so in<br>this series Our Top Chef Alain Ducasse Introduce a new meal called Cube Cake As the name suggests,<br>this delicious meal is a cake in the form of a complete cube with secret ingredients from the chef's<br>list. As it is a new chef's creation, you want to understand the ability to make Cube Cakes look<br>exactly the same. For this, you need to write a plan that will calculate the similarities between the<br>two Cube cakes provided.<br>Each piece of cake can be displayed as an N-size cube where each cube cell contains lower case<br>letters ('a' - 'z'). The similarity between the two Cube Cakes (each N size) is defined as the standard<br>sub-cube of the same size found in the same area in both Cube Cakes. Two sub-cubes are considered<br>normal if at least P% of the corresponding characters are equal. You need to find the S size of the<br>largest sub-cube and the number of common sub-cubes of size S in the Cube Cake.<br>Input:<br>1<br>2 40<br>abcdefgh<br>abcdefgh<br>Output:<br>2 1<br>

Extracted text: Need Java Solution: Winter is the most chilling time of all the seasons. In Winter the food options are on the top so in this series Our Top Chef Alain Ducasse Introduce a new meal called Cube Cake As the name suggests, this delicious meal is a cake in the form of a complete cube with secret ingredients from the chef's list. As it is a new chef's creation, you want to understand the ability to make Cube Cakes look exactly the same. For this, you need to write a plan that will calculate the similarities between the two Cube cakes provided. Each piece of cake can be displayed as an N-size cube where each cube cell contains lower case letters ('a' - 'z'). The similarity between the two Cube Cakes (each N size) is defined as the standard sub-cube of the same size found in the same area in both Cube Cakes. Two sub-cubes are considered normal if at least P% of the corresponding characters are equal. You need to find the S size of the largest sub-cube and the number of common sub-cubes of size S in the Cube Cake. Input: 1 2 40 abcdefgh abcdefgh Output: 2 1

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here