Non Repeating Character || Flipkart Series-9 || Code || Explanation || GFG

Опубликовано: 21 Октябрь 2024
на канале: coding sikho
13
1

Non Repeating Character || Flipkart Series-9 || Code || Explanation || GFG

Given a string S consisting of lowercase Latin Letters. Return the first non-repeating character in S. If there is no non-repeating character, return '$'.

Example 1:

Input:
S = hello
Output: h
Explanation: In the given string, the
first character which is non-repeating
is h, as it appears first and there is
no other 'h' in the string.


Follow Me On Social Media

Facebook:-   / mdsaifraza.raza.526  
LinkedIn:- linkedin.com/in/md-saif-raza-99941523a
Twitter:-   / mdsaifr10053951  
Instagram:-   / saif_raza8544