[Archive!] Pure mathematics, physics, chemistry, etc.: brain-training problems not related to trade in any way - page 582

 
DmitriyN:
There will be more questions for Sandu the mathematician in the future. For example, on the merits of locomotive trading :)))
You shouldn't do that... he'll figure it out right away and say there's no loco...
 
sand:
No sign of a no-strings-attached, Warden?
You didn't solve my probability problem, I had to do it myself. I got a lot more problems for you. I'll blow your brains out in two and a half months :)
 
DmitriyN:
You didn't solve my probability problem; I had to do it myself. I have many more problems for you.

I feel I'll have to bid on your problems soon enough. All you have are questions and no answers.
 
DmitriyN: You didn't solve my probability problem, I had to solve it myself.
Dima, this problem is related to trading. Look for another branch.
 

About the clock:
4 minutes after the start, flip the 4-minute clock
after another 3 minutes, turn over the 7 minutes.
after another minute turn the 7 minutes
after another minute - the right time!

 

Alexei, give me more.

MikeM:

About the watch:

The thought is correct, the description is not.
 
TheXpert:

Alexei, give us more.

The thought is correct, the description is not.
The description is very condensed, I agree. But the solution is correct. If anything is not clear, I will answer any question.
 
How do you determine 3 minutes?
 
tara:
How do you determine 3 minutes?
By this point, the 7-minute clock will have run out of sand
 

I'll give you a little task.

Of course, it's a hack, but at job interviews it works as an apotheosis of array sorting knowledge ))


So, the task for sorting

There is an array of N cells, in which the ones, twos and threes are placed in random order.

Build the best sorting algorithm.

Reason: