Pergunta de entrevista da empresa Playtechtonics, inc.

given the method: function foo( array accounts, int account, int amount) { if (accounts[account]>=amount) accounts[account]-=amount } what does the method do?

Resposta da entrevista

Sigiloso

27 de jul. de 2009

managing a banking account. allow withdraw only if the amount in account greater then needed amount