Single Character
Lesson 1 of 3 in Coddy's Interview Coding Challenges - Pack V course.
Challenge
EasyWrite a function singleChar which gets a string s, every character in s appears twice except for one, return from the function the character which appears only once!
Example:
Input - "aabdb"
Expected Output - "d"
Explanation - "a" and "b" appear twice and "d" appears only ones.
Try it yourself
#include <string.h>
#include <stdlib.h>
char* singleChar(char* s) {
// Write code here
}