Zillow Interview Question

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

Interview Answers

Anonymous

Nov 5, 2018

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

Anonymous

Jan 29, 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)

Anonymous

Jan 17, 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