This is a verified interview question from Citadel. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Minimum Generations to Equal Neurons in All Layers - Citadel Online Assessment" covers key patterns like Other.
"A neural network has n layers, where the number of neurons in the ith layer is layer[i]. In each generation, the system adjusts the neurons as follows: - In odd generations: 1 neuron can be added to at most one layer. - In even generations: 2 neurons can be added to at most one layer. Find the minimum generation in which all layers can have an equal number of neurons.  The 6th generation is the minimum in which all the layers can have an equal number of layer, i.e., 4."
Join thousands of developers practicing for Citadel.