0

How do i solve such a problem via cpp?

Three types of micro-organisms are usually found together in super-colonies. Due to their structures, they organize themselves in mesmerizing cubes with beautiful cross-sections. Although no one knows how they organize themselves prior to the third day, we have clear understanding of how they organize themselves between the third and seventh day. Research has shown that these super-colonies grow in predictable patterns up to one month. Study carefully the existing samples and predict how the cross-sections of the super-colonies would appear on other days. Test Input : 4 Output ---#--- --###-- -##+##- ##+++## -##+##- --###-- ---#---

5th Apr 2020, 10:07 PM
Kefa Steven
Kefa Steven - avatar
5 Antworten
+ 2
Is there more than the example with Input 4??
11th Apr 2020, 2:33 PM
Alexander Thiem
Alexander Thiem - avatar
+ 2
First of all you have to find the system behind the patterns (maybe: Firts row: (n-1)*”-“ “#” (n-1)*”-“ row number k: (n-k)*”-“ “##” (2k-5)*”+” “##” (n-k)*”-“ Last row: (n-1)*”-“ “#” (n-1)*”-“ ) Than you have to implement this in your code
11th Apr 2020, 2:41 PM
Alexander Thiem
Alexander Thiem - avatar
+ 2
Nice to hear that I could help you If you have anither question you can ask me
11th Apr 2020, 6:19 PM
Alexander Thiem
Alexander Thiem - avatar
0
I appreciate... i was able to solve via these guidelines..
11th Apr 2020, 6:18 PM
Kefa Steven
Kefa Steven - avatar
0
I appreiciate☺
11th Apr 2020, 6:22 PM
Kefa Steven
Kefa Steven - avatar