//
// Write a function that takes a string and returns its length without using built in properties (such as .length or .size()).
//
Risposte di colloquio
Anonimo
5 nov 2018
function length(str) {
let length = 0;
while (str[length]) {
length++;
}
return length;
}
Anonimo
29 gen 2019
in ruby:
b=str.split("")
c= 0
b.each do |t|
c += 1
end
puts c
in python:
c = 0
for i in len(str):
c += 1
print(c)
Anonimo
17 gen 2021
It's essential to demonstrate that you can really go deep... there are plenty of followup questions and (sometimes tangential) angles to explore.
There's a lot of Software Development Engineer experts who've worked at Zillow, who provide this sort of practice through mock interviews. There's a whole list of them curated on Prepfully.
prepfully.com/practice-interviews