World Wide Technology data pipelines may receive repeated records during ingestion retries. Given a list of record dictionaries, return the record IDs that appear more than once.
A record is considered a duplicate when its record_id has already appeared earlier in the list. Return each duplicated ID only once, in the order it is first identified as a duplicate.
Implement find_duplicate_records(records).
records, a list of dictionaries. Every dictionary contains an integer record_id and may contain other fields.def find_duplicate_records(records):