DEV Community

loading...

Discussion on: Daily Challenge #273 - Remove Duplicates

Collapse
bb4l profile image
bb4L

Nim:

import sequtils, algorithm

proc solve*(data: seq[int]): seq[int] =
    return data.reversed().deduplicate().reversed()