Domanda di colloquio di Neustar

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

Risposte di colloquio

Anonimo

25 nov 2019

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

Anonimo

4 apr 2021

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