|Write a program to find the first non-repeating ch...|General Coding Problems

fn first_non_repeating(s: &str) -> char

Medium

Write a program to find the first non-repeating character in a string.

fn first_non_repeating(s: &str) -> char

Asked in

infosys

Examples

Example 1:
Input: leetcode
Output: l
Example 2:
Input: aabbcc
Output:
Submit Result

Click Run to test sample cases, or Submit to evaluate all cases