• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
September 21, 2023 |880 Views
SDE Sheet - Uncommon characters
  Share   Like
Description
Discussion

This video is part of Strings section under GFG SDE Sheet.

In this video, we are 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 :

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.

Try it out before watching the implementation of the problem in the video. We recommend watching the video, even if you can solve the problem. You may discover something new. All the best!!!

Do check out:-

Article: https://www.geeksforgeeks.org/find-uncommon-characters-two-strings/
Problem: https://practice.geeksforgeeks.org/problems/uncommon-characters4932/1
SDE Sheet: https://www.geeksforgeeks.org/sde-sheet-a-complete-guide-for-sde-preparation/

Read More