Skip to content

Instantly share code, notes, and snippets.

View mohanagy's full-sized avatar
:bowtie:

Mohammed Naji mohanagy

:bowtie:
  • Emirate NBD
  • Dubai
  • 11:46 (UTC +04:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mohanagy on github.
  • I am mohanaji (https://keybase.io/mohanaji) on keybase.
  • I have a public key ASB5rwadBOacafgmM0eDvzYg_zfI1qSry8T5GzLgTl2Yewo

To claim this, I am signing this object:

function firstNonRepeatingLetter(word) {
let obj = {};
for(let i = 0; i < word.length; i++){
obj[word[i].toLowerCase()]= obj[word[i].toLowerCase()] +1 || 1
}
for(let k in obj){
if(obj[k] === 1){