HF RL Explorer

Task: Array Remove Duplicate Elements

Task: Array Remove Duplicate Elements: a task in Terminal-Lego-15k (Harbor dataset). You are given an unsorted array of integers that may contain duplicate elements. Your task is to write a program that removes all duplicate elements from the array while preserving the original order of first…

The task

You are given an unsorted array of integers that may contain duplicate elements. Your task is to write a program that removes all duplicate elements from the array while **preserving the original order** of first occurrences.

Part of PrimeIntellect/Terminal-Lego-15k.