Search Questions

Company: DESHAW

#1

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: 0
Code Size:
#2

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: