Cognyte interview question

Given a string - write an algorithm that will check that all chars in the string are unique (no duplicate)

Interview Answer

Anonymous

5 Aug 2021

I did it in O(N) using a HashMap