def prefix (a, b):
i=0
while a[i] <> 0
if b[i] == 0:
return false
if a[i]<>b[i]:
return false
return true
prefix ('' , 'f') = 1
prefix ('f', '') = 1
perfix ('f','fg') = 1
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