This is a problem in Algorithms and Probability and it's seemingly the easiest one, and I can't understand how to solve it. There's some probabilistic way to calculate it, I just don't know how or what.
Consider an arrangement of 17 distinct cars parked next to each other in a row from left to right. Show that no matter how this is done there will always be 5 cars (left to right) so that their price is either increasing (not smaller than the previous) or decreasing (not larger than the previous) in the order from left to right.
Get Answers For Free
Most questions answered within 1 hours.