Skip to main content

Non-Repeated Characters in String

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

Updated 1 min readMarkdown
Part of seriesPython-Interview
Non-Repeated Characters in String

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

About the author

  • 馃殌 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 馃尡

No comments yet. Be the first to comment.

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 beginningWater Tank ProblemRedBus interview first round