О чём разговор
Car model data classes, defect filter by year, remote service mocks, grouping by model
Этапы
- 1Лайв-кодинг
- Оффер
Все вопросы
- 20:14
Could you elaborate on what you mean by not exposing?
Технический - 20:47
Would you add the brand constraint to the first task, please?
Технический - 22:24
Could you add some tests for the second task just to demonstrate that your code works?
Код - 27:45
I see that you basically repeated the same code as it's inside the methods, right?
Технический - 43:50
Could you mock the remote service in the test instead of leaving it not implemented?
Код - 48:17
Do you have an idea what could be the cause here?
Технический - 54:35
In this example case, how should it work?
Кейс - 56:23
Does the remote service have the information that it needs?
Системный дизайн - 1:02:43
Could you change the code so that you can just create a class in your test without using the mocking library?
Код - 1:06:03
Could you explain why you feel this is wrong?
Технический - 1:07:48
Will your code work if the cars are of different brands, for example BMW and Volkswagen?
Код - 1:10:18
Do you have an idea how to reduce the number of iterations?
Код - 1:11:59
So you want to call the remote service multiple times?
Системный дизайн
Ключевые моменты
- 04:30
Task clarified: the remote service is only a placeholder
- 49:10
Hint: the test needs a mock object, not a class instance
- 1:03:27
Tests rewritten with a stub subclass
- 1:06:12
Filter review: nested loops and extra arrays
- 1:11:07
Defects grouped by car model to cut iterations
- 1:21:00
Candidate questions: team, contract length and hiring process
Отрывок из разговора
Yeah. Yeah. Because yeah. So, so, so could you explain why, why do you feel this is wrong?
Um, well, first is this is uneffective. Like we create, uh, our task is basically to filter a collection of defects for models based on a year. And in this implementation, I create separate array list for that purpose and I have two for loops bubble sort with the n2 complexity which is unnecessarily complex. This should be done using streams or basically where it would be just one liner.
the operations so I need to look at that. Yeah but will it be better with streams?
It's gonna be better from perspective of time complexity and it's gonna be better from the perspective of memory allocation because you do not duplicate arrays.
Что вынести
A live-coding interview of about 90 minutes in Kotlin, the first technical round after a recruiter call. The candidate modeled car and known-defect data classes, wrote a service backed by a placeholder for a remote API and unit tests with mocks, then rewrote a year-range filter from nested loops to grouping by car model. The interviewer gave hints on mocking and complexity, ended the session early for another meeting, and did not say whether a system design round would follow.
Разбор собран по записи разговора.
Расшифровка
Hello? Hello?
Hey.
Can you hear me?
Yeah, I can hear you.
Nice, I can hear you too.
Is it a shirt from Allegro Tech Meeting?
Yes, it is.
Nice, nice. Are you located in Poland now?
No, no, no, I'm in Prague, Czech Republic.
Oh, wow. Nice. Alright, so, yeah, welcome to the interview. So yeah, like this will be a standard interview that every backend engineer goes through. Yeah, but I got the info from name, the engineering manager from the search team that you will be hired as a backend engineer in the search team, right? So this is an interview like specifically for the search team, but yeah, like the procedure is, let's say standard for every backend engineer. Okay. My name is name. I'm a backend engineer working in OLIX. I'm based in the city of Poznań in Poland. Yeah. Okay. I don't know if you got the instructions. So do you have the IDE prepared? Yeah. Okay. Nice. And I see that you have the note taker. I ask you to disable it because, you know, like we don't want the, uh, the recruitment task to,
yeah, sure. Sure. Um, you just, you just can kick it as an admin because it's joining automatically. Sorry. I cannot disable it now.
No problem. No problem. Uh, can I, huh? I think that the meeting was created by name and I can, I can't kick it, but well,
Maybe I can find a way and...
Oh, nice. Oh, okay. Okay. Nice. Thank you very much. As you see, name also has the AI notetaker. All right. I think it's okay to start already. So, yes. So, I'm sending you the task on the Zoom chat. Hold on. okay i can't do it in my in one message okay so that's the first part and that's the second part uh so okay so beef before you start reading uh let me say a few words so so this is the entire task uh so there there are going going to be no follow-ups well maybe apart from my questions um and yeah you don't have to create a production ready service so so you know there is no database there is no API and no external connectivity no user interface no nothing like that so so basically it's just you know Kotlin Kotlin code and and that's it and please don't use uh AI during the interview so you are allowed to use the the internet but well you know like using AI agents, it's not allowed.
Do you see it well? Should I make it bigger?
Well, yeah, if you can, yeah, that would be better.
So many windows. Okay. This should be very big.
Oh yeah, it's great. It's great. much yeah and also because this is a live coding interview it's uh it's okay to to make mistakes and also the the interview is uh well to see how you get out from the mistakes right to find how do you find solutions okay i i guess that's that's it so yeah uh uh yeah but maybe a few more things So I will be taking notes during the interview and you have 90 minutes to solve the task, but, well, we can prolong it a little bit if you need more time. So it's also okay. It's not strict. All right. So good luck.
So basically my task, I can start, right? Let me just read through. Okay, yeah, please take your time. I'm basically designing the data layer for the backend service. Like, I have to create classes, entities, that's the goal. As you can see, I need to create some models here. and some operations as well okay list of Carson returns effects known to be present in them so you'll have some remote service So this remote service, should I create API like REST API to demonstrate the communication?
Дальше — после входа. Это бесплатно и займёт минуту.
Войти и читатьПохожие собеседования
СОГАЗ
Java Developer
Реляционные БД, Spring-транзакции и прокси, отказоустойчивость интеграции, кэш и Redis
Почему в проектах выбирают PostgreSQL?
СОГАЗ
Python Developer
Классификация и регрессия, переобучение, OCR, LLM, агенты, RAG, векторные базы
Что такое обучение с учителем и без учителя?
СОГАЗ
Python Developer
Продажи юрлицам: CRM на нейросетях, AE-агент, опыт с LLM, полиморфизм, этапы найма
Подходит ли вам офис в Москве на Серебрянической набережной, 29?
VK
Java Developer
LRU-кэш, HashMap и ConcurrentHashMap, deadlock, Atomic и серии одинаковых символов
Напиши функцию: для каждого уникального символа строки верни максимальное число его непрерывных повторений подряд.