Regular Angular Developer at Remote Romania
Luxoft Romania

How did the interview go?
Prima parte a interviului a fost ca un test, cu time limit si share screen sa rezolv 2 probleme, una de Typescript, de algoritmica, si una de Angular, care a fost un pic confussing prin faptul ca tot cosul era amplasat intr-un fisier.
Dupa partea practica, a urmat partea teoretica cu 10-15 intrebari despre Angular plasate in chat la care a trebuit sa raspund pe rand.
Ultima parte a fost o discutie libera Q/A despre companie, work environment.
Interview questions and tests
Your task is to write a function that counts the occurrences of each unique value in the array and returns an object (dictionary) where:
--> The keys are the unique elements from the array.
--> The values are the number of times each element appears in the array.
const nestedArray = [2, 'A', 2, 'A', 4, 'A', 6, 'A', 8]; // output: {A: 4, 2:2, 6:1, 8:1}
- A doua intrebare (Angular):
// Given:
// 1. A list of colors composed of "red" and "green" elements.
// 2. A "Square" component that renders a square of a given color and executes a click method.
// Implement a parent component named "App" that:
// 1. Uses the given Square component to render all squares from the "colors" list
// 2. Exposes the following functionality:
// - click green => change current element to "red" + add 1 new "green" element at the end of the list
// - click red => delete current element
