employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged Employer

Tata Consultancy Services Interview Question

How many unique letters were ins a given string?

Interview Answer

Anonymous

Jul 11, 2025

Used a dict with each new letter as key and iterated through the string adding new letters to the dict and increment count for existing letters