Skip to main content

Command Palette

Search for a command to run...

Non-Repeated Characters in String

Finding Count of Characters that are not repeated in the string.

Updated
1 min read
Non-Repeated Characters in String
V

🚀 Software Engineer at TechM | Ex Merkle | Design Enthusiast 🎨 | Graduate of KLS Gogte Institute of Technology 🎓 | Connector of People & Ideas 💡 | | React.js Aficionado | Eager Learner & Growth Advocate 🌱

Here is a problem I recently came with an interview. Let's see the way we can solve this using python

Problem

A data Compression software utilizes various steps to compress a string of data. One of the steps involves finding the count of characters that are not repeated in the string. Write an algorithm for the software developer to find the count of characters that are not repeated in the string.

Input : The Input consists of a string

Output : Print the non-repeated characters and the count of characters that are not repeated. if no characters are found print 0

My approach :

If you have a better way to solve this problem, do comment down below.

3a854213c52fdcfe4643cf0c6d956c74.png

Python-Interview

Part 3 of 3

In this Series, we will learn python from scratch and work with different problem definition and approach to solve these problem.

Start from the beginning

Water Tank Problem

RedBus interview first round