Pregunta de entrevista de Squarespace

Write a basic template engine class

Respuestas de entrevistas

Anónimo

23 oct 2017

I had the same!

2

Anónimo

23 oct 2017

solve with regex or string manipulation

Anónimo

29 ene 2021

In these sorts of interviews you really need to drill down and understand what the interviewer is looking for. A good way to simulate a real interview experience is to do a mock with one of the SquareSpace Front End Engineer experts on Prepfully, rated super strongly on TrustPilot... prepfully.com/practice-interviews

Anónimo

19 oct 2017

Parse the string in the construction function, use an array to store the segments and use an hashmap(object) to store the mapping of each %abc% to its corresponding index in that array.