You are given two independent coding tasks.
Given a list of meeting time intervals intervals, where each interval is [start, end) with integer times and start < end, compute the minimum number of conference rooms required so that no meetings assigned to the same room overlap.
[start, end)
).
Input: intervals: List[List[int]]
Output: int (minimum number of rooms)
Constraints (typical):
0 <= intervals.length <= 10^5
0 <= start < end <= 10^9
Given an array of strings tokens representing an arithmetic expression in Reverse Polish Notation (postfix form), evaluate the expression and return the result as an integer.
"+"
,
"-"
,
"*"
,
"/"
.
Input: tokens: List[str]
Output: int
Constraints (typical):
1 <= tokens.length <= 10^4