Pergunta de entrevista da empresa Zillow

​ // // Write a function that takes a string and returns its length without using built in properties (such as .length or .size()). //

Respostas da entrevista

Sigiloso

5 de nov. de 2018

function length(str) { let length = 0; while (str[length]) { length++; } return length; }

Sigiloso

29 de jan. de 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)

Sigiloso

17 de jan. de 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