💼 Zepto Frontend Engineer Interview Experience — 40LPA
Overview
The candidate, having accrued significant experience at CARS24, sought new opportunities and was drawn to Zepto's scale and frontend challenges. The Zepto interview process was described as sharp and focused, emphasizing hands-on problem-solving and a deep understanding of ReactJS and JavaScript.
Interview Rounds
The interview process consisted of two primary rounds:
Round 1: Problem Solving + JavaScript + React Fundamentals
This round assessed the candidate's theoretical knowledge, logical reasoning, and ability to apply concepts to real-world scenarios. Questions included:
-
Performance-Based Web Questions:
- How SSR helps in performance.
- Bundle splitting and lazy loading.
- Methods to reduce TTI (Time to Interactive).
-
Breadcrumb Chain Problem (Tree Traversal):
Given a breadcrumb array, generate the complete hierarchy starting from the root.
const breadCrum = [ { id: 3, parentId: 12, title: "Headphones" }, { id: 19, parentId: 28, title: "True wireless" }, { id: 28, parentId: 3, title: "Wired" }, { id: 12, parentId: null, title: "Audio" }, { id: null, parentId: 19, title: "Bluetooth" } ];Expected Output:
Audio >> Headphones >> Wired >> True wireless >> BluetoothThe suggested approach involved a recursive or iterative path-building mechanism with a Map of id → node.
-
Output of
setTimeoutandsetInterval:Questions focused on:
- How JavaScript timers work.
- Event loop and call stack behavior.
- Order of execution in asynchronous code.
-
useMemo()vsuseCallback():// useMemo - Caches a computed value const memoizedValue = useMemo(() => computeExpensiveValue(a, b), [a, b]); // useCallback - Caches a function reference const memoizedCallback = useCallback(() => handleSubmit(data), [data]);useCallbackis used for function identity, particularly when passing functions to child components.useMemois for caching results of expensive computations. -
Programmatically Add Event Listener:
Original Source
This experience was originally published on medium. Support the author by visiting the original post.
Read on medium