Company: Myntra
Difficulty: medium
Fancy Tower Problem body { font-family: Arial, sans-serif; line-height: 1.6; } .problem-container { max-width: 800px; margin: 0 auto; padding: 20px; border: 1px solid #ccc; border-radius: 8px; background-color: #f9f9f9; } h3 { color: #333; } .problem-description, .input-format, .output-format, .constraints, .examples { margin-bottom: 20px; } .example { background-color: #fff; padding: 10px; border: 1px solid #ddd; border-radius: 4px; } pre { background-color: #f4f4f4; padding: 10px; border: 1px solid #ddd; border-radius: 4px; overflow-x: auto; } .explanation { margin-top: 10px; color: #555; } table { width: 100%; border-collapse: collapse; margin-bottom: 20px; } table, th, td { border: 1px solid #ddd; } th, td { padding: 8px; text-align: left; } th { background-color: #f4f4f4; } Fancy Tower Problem Little Fiona loves creating beautiful patterns with her blocks. She has N blocks of various sizes \\( A_1, A_2, \\ldots, A_N \\), where N is even. Some blocks may be of the same size. Fiona