Taro Logo

Senior Frontend Engineer Interview Experience - Tel Aviv-Yafo

February 1, 2024
Neutral ExperienceNo Offer

Process

  1. short phone interview with hr.

  2. 2 part home assessment restricted in time in Qualified platform (online code editor with time limit). the first part is a warmup question to do in 30m - write the classic fizzbuzz function with some additions.

second part is more challenging - 2 hours to complete 2 challenges - 1 is to create a graph component based on some data object, the key part here is make the columns evenly spaced across the width of the graph component. the second part - to fetch 2 resources a list of rooms and labels and to display in a graph the total capacity of all rooms by label.

room has a capacity and an optional list of labels.

labels have hierarchy - a label is a child of another label if the other label has parentId that matches its id. the tricky part is to build the label in recursion into some data structure that later can be used to sum the capacity of each room, pretty mind-boggling and annoying assignment, I ran out of time.

Questions

Fizzbuzz question - Iterate over all 4-digit numbers in ascending order. For numbers that are divisible by 7, print "Boom" For numbers that contain the digit 7 in it, print "Pzaza" If a number is both divisible by 7 and contains the digit 7, print "PzazaBoom" Any other number should be printed as is.

Create a BarGraph component - The required interface for the component is to accept the following props and render the UI in the image above:

const DATA = [ { label: "A", value: 5 }, { label: "C", value: 2 }, { label: "B", value: 23 }, ]; const COLORS_PALETTE = ["#ff0000", "#ff8000", "#00ff80"];

Additional requirements graph size - should be based on the width / height props (e.g. "100px", you can assume the provided values will be strings with px suffix). Graph padding - A padding of 5px (vertical and horizontal) should exist between the graph-area's border and the columns. Column height - Columns should indicate their value by their height, have a minimum height of 5px and the highest column value should fill the graph's height. Column width each column should have 8px of spacing to the columns near it, and they should fill the available graph width, while having a minimum width of 15px. Data points can be assumed to fit in the graph width.

Data points - Each data point has a label which is a single capital letter, and a non-negative number, e.g. { label: "A", value: 42 }. Labels - Should only be displayed for the X axis (under the graph), and not for the Y axis. Coloring - Column colors should be cyclic - first color for the first column, second for the second, and so on, until there are no more colors, and then the same order should be used again.

Aggregate data grouped by label - Your task is to fetch a list of conference rooms and label hierarchy and to display in a graph the total capacity of all conference rooms by label.

  1. Fetch data You are given 2 API endpoints to use:

getConferenceRooms Fetch a list of all conference rooms (no arguments) - returns a Promise that resolves into a list of conference room objects. Sample response:

[ { "id": 1, "name": "Strawberry", "buildingName": "KennedyA", "labels": [4, 1], "capacity": 40, "hasProjector": true, "hasTv": true }, ... ] getLabels Fetch a list of all available labels (no arguments) - returns a Promise that resolves into a list of label objects. Sample response:

[ { "id": 1, "name": "Large", "parentId": null }, ... ] 2. Calculate total capacity by label Each conference room has a capacity: Number attribute and an optional list of labels?: Array representing IDs of the labels assigned to the room. Each label has a name: String and an optional parentId: Number. Labels have hierarchy - A label is a child of another label if the other label has parentId that matches its id. Labels hierarchy is recursive - a label's descendants are its children, and all of their children recursively. Rooms are associated with a label if room.labels has the label or any of its descendants. The total capacity for a label is the sum of the capacity of all rooms associated with the label. 3. Display a graph You are provided with a BarGraph component:

Use it to display the graph of total capacity by label as pictured above.

  1. Filter the data You are provided with a Select component:

Use it to select the labels to show in the graph. When no labels are selected show all labels in the graph.

Was this helpful?

Interview Statistics

The following metrics were computed from 1 interview experience for the Claroty Senior Frontend Engineer role in Tel Aviv-Yafo.

Success Rate

0%
Pass Rate

Claroty's interview process for their Senior Frontend Engineer roles in Tel Aviv-Yafo is extremely selective, failing the vast majority of engineers.

Experience Rating

Positive0%
Neutral100%
Negative0%

Candidates reported having mixed feelings for Claroty's Senior Frontend Engineer interview process in Tel Aviv-Yafo.

Claroty Work Experiences