def count_words(s):
nb_words = 0
in_word = 0
i = 0
while s[i] <> 0:
if s[i] <> ' ':
if in_word:
i++
else:
nb_words++
in_word = 1
else:
in_word = 0
i++
Why is a manhole round?
Il y a 12 ans
This blog provides questions commonly asked at technical interviews for software engineering roles. Solutions are given for most questions. Questions come from different sources but answers are my own.
Aucun commentaire:
Enregistrer un commentaire