NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
All companies

Airbnb

Latest vacancy: December 1, 2026

Vacancies
5
Interviews
1
Questions
4
Tasks
0

Vacancies · 4

Staff Data Scientist - Martech Platform (ML/Algos)

Senior · Machine Learning / AI · Dec 1

Lead, Advanced Analytics, Acquisition

Lead · Data Analyst · Sep 15

Recruiting Manager, Global Operations

Head · California · Sep 11

By grade

  • Head1
  • Lead1
  • Senior1
  • Unknown1

By direction

  • Unknown2
  • Data Analyst1
  • Machine Learning / AI1

By work format

  • Remote4

Interviews · 1

Other direction

1 interview

Technical

Middle · 4 questions
Jul 196 views

By interview stage

  • Technical1

By grade

  • Middle1

Questions and tasks · 4

Other direction

4 questions

The database should support displaying data based on filters. Introduce an operation to support printing some fields of a record. - **scan(self, timestamp: int, key: str) -> list[str]** — should return a list of strings representing the fields of the record associated with key. The returned list should be in the following format ["<field_1>(<value_1>)", "<field_2>(<value_2>)", ...], where fields are sorted lexicographically. If the specified record does not exist, returns an empty list. - **scan_by_prefix(self, timestamp: int, key: str, prefix: str) -> list[str]** — should return a list of strings representing some fields of the record associated with key. Specifically, only fields that start with prefix should be included. The returned list should be in the same format as in the scan operation with fields sorted in lexicographical order.

Middle

The basic level of the in-memory database contains records. Each record can be accessed with a unique identifier key, which is of string type. A record contains several field - value pairs, with field as string type and value as integer type. All operations have a timestamp parameter — a stringified timestamp in milliseconds. It is guaranteed that all timestamps are unique and are in a range from 0 to 109. Operations will be given in order of strictly increasing timestamps. Timestamps will be needed starting from Level 3. - set(self, timestamp: int, key: str, field: str, value: int) -> None — should insert a field - value pair to the record associated with key. If the field in the record already exists, replace the existing value with the specified value. If the record does not exist, a new one is created. - compare_and_set(self, timestamp: int, key: str, field: str, expected_value: int, new_value: int) -> bool — should update the value of field in the record associated with key to new_value if the current value equals expected_value. If expected_value does not match the current value, or either key or field does not exist, this operation is ignored. This operation should return True if the field was updated and False otherwise. - compare_and_delete(self, timestamp: int, key: str, field: str, expected_value: int) -> bool — should remove the field field in the record associated with key if the previous value equals expected_value. If expected_value does not match the current value, or either key or field does not exist, this operation is ignored. This operation should return True if the field was removed and False otherwise. - get(self, timestamp: int, key: str, field: str) -> int | None — should return the value contained within field of the record associated with key. If the record or the field does not exist, should return None.

Middle

The database should support look back get operation. get_when(self, timestamp: int, key: str, field: str, at_timestamp: int) -> int | None — should return the value of field at at_timestamp from the record associated with key. If at_timestamp is 0, perform the get operation described in Level 1. It is guaranteed that at_timestamp will not be greater than timestamp. If the specified field or record did not exist at the given timestamp, return None.

Middle

Level 3 Support the TTL (Time-To-Live) settings for records and fields. For each field-value pair in the database, the TTL determines how long that value will persist before being removed. Note: All relevant operations defined in previous levels are assumed to have an infinite TTL. - set_with_ttl(self, timestamp: int, key: str, field: str, value: int, ttl: int) -> None — should insert the specified value and set its Time-To-Live starting at timestamp. If the field in the record already exists, then update its value and TTL. The ttl parameter represents the number of time units that this field-value pair should exist in the database, meaning it will be available during this interval: [timestamp, timestamp + ttl). It is guaranteed that ttl is greater than 0. - compare_and_set_with_ttl(self, timestamp: int, key: str, field: str, expected_value: int, new_value: int, ttl: int) -> bool — the same as compare_and_set, but should also update TTL of the new_value. This operation should return True if the field was updated and False otherwise. It is guaranteed that ttl is greater than 0.

Middle