Loading…

Worlds

The task of calendar gaps merging

    Let’s suppose you are working in a company and it is developing an electronic calendar. The calendar has a function that shows when various programming teams will be busy at a meeting.   Those periods when the team is busy are marked on the calendar as time ranges, for example, from 10:00 to…

The task of the ball with helium in the car

    Imagine that you are in a car where a balloon filled with helium is tied to the floor. The windows are closed. You push the gas pedal. What happens to the ball: will it move forward, backwards or will it remain in the same position?   What happens to the ball?   Move…

The task of Apple shares

This task was given to candidates during the interviews at Apple. You need to create a function that returns that maximum profit from a single deal with one share (firstly purchase, then sale). The input data is an array of yesterday quotations with Apple shares’ prices.    Here is the info about the array:  …

In the darkroom, you are handed a deck of cards.

  This task was once popular at interviews in JP Morgan Chase. Surely, once in the darkroom, you will just take your smartphone and use the screen or a flashlight. However, this task had created before the era of smartphones and can be solved without observing the cards.   With an imperious deck division, it…

How far can you deliver cargo using N trucks?

    You have a fleet of 50 trucks. Each of them is fully fueled and can cover 100 km. How far can you deliver a certain item with their help? What will be the formula if you have N trucks at your disposal?   Not all people understand what is the task about: geographically…