68. get DOM tags

medium  - accepted / - tried

Given a DOM tree, please return all the tag names it has.

Your function should return a unique array of tags names in lowercase, order doesn't matter.

What is time & space complexity of your approach?

(2)
(156)