Count the unstable processes given their names, timestamps and limits.
Unlock detailed company stats for this questionUpgrade
Given a process, its timestamp (in seconds) and its limit, find the number of unstable processes. A process is unstable if, ordered by timestamp, it has at least one increasing and at least one decreasing limit. Example: process = ["A", "B", "A", "C", "D", "A"], timestamp = [10, 25, 30, 35, 15, 20], limit = [20, 18, 10, 8, 30, 27] returns 1, since process A has 20->27->10, which has one increase and one decrease.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
