Skip to content

Uncommon characters #88

@Harsh76200

Description

@Harsh76200

❗Write Code in Only One Language ( CPP , C , Java , Python )

Give File Name : Uncommon characters ✅ In respective language folder

📑 DESCRIPTION

Uncommon characters

Difficulty: Easy

Given two strings A and B consisting of lowercase english characters. Find the characters that are not common in the two strings.

Note :- Return the string in sorted order..

Example 1:

Input:
A = geeksforgeeks
B = geeksquiz
Output: fioqruz
Explanation: 
The characters 'f', 'i', 'o', 'q', 'r', 'u','z' 
are either present in A or B, but not in both.

Example 2:

Input:
A = characters
B = alphabets
Output: bclpr
Explanation: The characters 'b','c','l','p','r' 
are either present in A or B, but not in both.

Follow-up: Can you come up with an algorithm that is less than O(n^2) time complexity?

Metadata

Metadata

Assignees

Labels

CC Programming Languagec++C++ Programming Languagegood first issueGood for newcomershacktoberfestHacktoberfest Issuehacktoberfest-2023Hacktoberfest 2023 Issuehacktoberfest-acceptedAccepted for HacktoberfestjavaJava Programming Languagenot-assignedIssue Not assigned yetpythonPython Programming LanguagestringQuestion related to string

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions