Algorithm · Capital One · Easy
Given a collection of credit card transactions, create an algorithm that decides whether each transaction is genuine or fraudulent according to the applicable rules. The decision criteria may depend on both the card category and the transaction amount. Requirements Input: A list of transaction records. Each record is a tuple containing a credit card category as a string and a transaction amount as a float. Output: A boolean list with the same number of elements as the input…
Checking your access…