Search Questions

Latest Questions | Page 2

#1

You've been asked to program a bot for a popular bank that will automate the management of incoming requests. Every request has its own timestamp in seconds, and it is guaranteed that all requests come sequentially, i.e. the timestamp is strictly increasing. There are two types of incoming requests:

. deposit <timestamp> <holder_id> <amount> - request to deposit <amount> amount of money in the

Asked in: CITYBANK


Buyer: 0
Code Size: 29
#2

Q Trip Tag Generator Uber's platform auto-generates trip tags which are short strings summarizing key trip metadata. To validate the tagging logic, the infrastructure team is checking how many different ways a specific tag can be constructed using segments from historical tags.

You are given an array tags of length n, where each tag is a string of length m. You're also given a targetTag that ne

Asked in: UBER


Buyer: 0
Code Size: 26
#3

Fleet Upgrades

You're building a system for Uber Fleet Management to optimize vehicle upgrades within a limited operations budget.

There are a total of n vehicles where:
- `upgradeCost[i]`: cost to upgrade the i-th vehicle
- `expectedResale[i]`: expected resale value of the i-th vehicle after one year of operation

You may choose to upgrade any vehicle once, and the total upgrade cost mu

Asked in: UBER


Buyer: 0
Code Size: 12
#4

Q. Package Drop Optimization

Uber Connect's package delivery team is reviewing how delivery agents handle packages across multiple zones.

For each of the n delivery zones:
- `scheduledDrop[i]` stores the scheduled time (in minutes) to drop the package in the i-th zone.
- `realDrop[i]` stores the actual time (in minutes) the package was dropped in the i-th zone.

Due to system limitations

Asked in: UBER


Buyer: 0
Code Size: 22
#5

Finally, a basketball court has been opened in SIS, so Demid has decided to hold a basketball exercise session. 2 * n students have come to Demid's exercise session, and he lined them up into two rows of the same size (there are exactly n people in each row). Students are numbered from 1 to n in each row in order from left to right.

Now Demid wants to choose a team to play basketball. He will c

Asked in: AXION


Buyer: 0
Code Size: 27
#6

A company is organizing a batch process, where each batch consists of several task groups arranged in a line and numbered from left to right. Each group currently has a certain number of tasks assigned, represented by the array tasks[], where tasks[i] is the number of tasks in the i-th group.

To optimize the process, the company wants the number of tasks in each group to be non-increasing from

Asked in: DESHAW


Buyer: 1
Code Size: 36
#7

A digital art gallery has an art collection which is represented as a binary string. Each digit in the string represents an artwork and there are two types of artworks: '0' represents a traditional artwork, '1' represents a modern artwork. Your task is to find out the number of ways to choose three artworks in ascending order of their position in the collection, such that no two adjacent selected

Asked in: DESHAW


Buyer: 0
Code Size: 19
#8

Given a series of integer intervals, determine the size of the smallest set that contains at least 2 integers within each interval.

Example:
first = [0, 1, 2]
last = [2, 3, 3]

The intervals start at first[i] and end at last[i].
- Interval 0: [0, 2] → contains 1 and 2
- Interval 1: [1, 3] → contains 2 and 3
- Interval 2: [2, 3] → contains 2 and 3

To satisfy all intervals

Asked in: DPWORLD


Buyer: 1
Code Size: 22
#9

A forklift operator navigates products within an automotive parts warehouse. The dashboard displays a real-time map showing open and blocked sections as an n x m matrix of 1's (open) and 0's (blocked). The operator starts at the top-left corner of the map at warehouse[0][0] and aims to reach the bottom-right corner at warehouse[n-1][m-1]. Movements can only be made to the right or downward. Given

Asked in: DPWORLD


Buyer: 0
Code Size: 17
#10

School renovation

Given N classrooms in a school and each classroom has a capacity of A[i] students. Bob is a builder and follows the instructions of Alice.

Alice gives Q instructions of the following types:
- 1 L 0: Move L classrooms to the left
- 2 R 0: Move R classrooms to the right
- 3 X Y: Remove the next classroom and add two new classrooms of capacity X and Y respectively to the ri

Asked in: ADOBE


Buyer: 0
Code Size: 53