employer cover photo
employer logo

Neustar Interview Question

In coding they asked to remove duplicates from a string eg WelComeToNeustar -> WelComTNusar

Interview Answers

Anonymous

Nov 25, 2019

I used linkedhashmap remove the duplicates and jus printed the contents in hashmap

Anonymous

Apr 4, 2021

s='WelComeToNeustar' q='' for i in s: if i.upper() in q or i.lower() in q: continue q += i print(q)