esilver-uvm / Left-Group-VERSO

Repository for the Left Group (from the back) of the Advanced Programming VERSO activity.
MIT License
0 stars 8 forks source link

For loop error in remove_duplicates.py #28

Closed VarunVijay625 closed 1 day ago

VarunVijay625 commented 1 day ago

The for loop adds to unique elements if i==0 which will always be true on first iteration, and adds arr[i-1] instead of arr[i] to removed elements. This will result in extra items in unique elements and removed elements.

JayYarlott commented 1 day ago

Done :D

JayYarlott commented 1 day ago

32