Algorithm · Square · Hard
Implement process_bin_operations(operation_types, keys, sources, trusts, brands, card_types) for an in-memory collection of decimal card-number prefixes. Each prefix can carry two independently stored attributes: a card brand and a card type. All six arrays have the same length. Each index i describing one operation: When operation_types[i] is "store", keys[i] holds a non-empty decimal prefix, sources[i] holds write metadata, and trusts[i] holds an integer trust score.…
Checking your access…