zzcheah / Interview-Exercises

0 stars 0 forks source link

The output needs to indicate the two rows that are duplicate #1

Open orangepaydev opened 1 year ago

orangepaydev commented 1 year ago

Running the main method we have the output as

Duplicated entry: IC#7,28/2/1920 at row 2

The 1st output indicate that Row 2 is a duplicate, and which fields are duplicate with. It's just missing which row it's marked duplicate with. In this case Row 1 and Row 2 are duplicate, so the expected output should be:

Duplicated entry: row 1 and row 2 are duplicate

zzcheah commented 1 year ago

This PR #4 will include the fix for this issue.