Skip to content

Instantly share code, notes, and snippets.

Avatar

Hussam El Kurd hussamkurd

View GitHub Profile
View gist:8a55356882a4374d63c0cc1fa9576c56
// PHP - Hussam Kurd
function firstNonRepeatingLetter($s)
{
return array_search(1, array_count_values(str_split($s)));
}
You can’t perform that action at this time.