Loading...
Is this your company?
Remove duplicated char within a String
Anonymous
boolean array, O(n)
s = 'ssammplee' sl = list(s) sl_dedup = [a for a, b in zip(sl[:-1], sl[1:]) if a!=b] + [sl[-1]] s_dedup = ''.join(sl_dedup)
function removeDuplicate string ){ var unique=''; for(var i=0; i
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.