Build a payment management system to process transactions priority - Credit, credit card, paypal For each type, we need to only process refund for the latest timestamp payment1: credit : timestamp: amount payment2: credit : timestamp: amount refund1: linked to payment 1: amount refund2: linked to payment 2: amount target refund : amount generate refunds for the target amount
Build a Payment Management System
Build a payment management system to process transactions with priority given to credit, credit card, and PayPal. For each type, process refunds only for the latest timestamp. Example transactions include payment1: credit with timestamp and amount, and payment2: credit with timestamp and amount. Refunds are linked to payments, such as refund1 linked to payment1 with a specific amount. The system should generate refunds for the target amount.
Onde essa pergunta já apareceu
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
Materiais associados
Nenhum anexo público associado a esta pergunta.
Depois de treinar essa pergunta, vale abrir outras do mesmo tipo e da mesma senioridade para comparar padrões de resposta.
Isso ajuda a sair da memorização de uma resposta só e entrar em repertório real de entrevista.
Continue a preparação com o banco completo
No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.