History of Idiom 119 > diff from v33 to v34
Edit summary for version 34 by canonical.chris:
[Java] add two missing import statements
[Java] add two missing import statements
↷
Version 33
2018-04-07, 10:25:05
Version 34
2018-04-07, 10:26:14
Idiom #119 Deduplicate list
Remove duplicates from list x.
Explain if original order is preserved.
Idiom #119 Deduplicate list
Remove duplicates from list x.
Explain if original order is preserved.
Comments bubble
Upon first occurrence, store item in seen; all future occurrences of the item are removed from the list efficiently via the iterator listIt, removing the last-returned item.
Requires extra memory for the hash-set.
Comments bubble
Upon first occurrence, store item in seen; all future occurrences of the item are removed from the list efficiently via the iterator listIt, removing the last-returned item.
Requires extra memory for the hash-set.