Pergunta de entrevista da empresa Goldman Sachs

Menu A has A1,A2,A3 Menu B has B1,B2 and Menu A1 has A11,A12,A13 and Menu A12 has A123. Implement this Object.

Respostas da entrevista

Sigiloso

19 de out. de 2014

Did implement by creating a tree but Interviewer was not satisfied.

Sigiloso

21 de fev. de 2016

Definietly he shouldn't be. You should use interface such as: "menuEntry" and multiple implementations of the given interface, depending on the node functionality.