Pergunta de entrevista da empresa Neustar

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

Respostas da entrevista

Sigiloso

25 de nov. de 2019

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

Sigiloso

4 de abr. de 2021

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