EAD卡拿到后公司不愿延h1b怎么办?# EB23 - 劳工卡
z*g
1 楼
A period of time where users login and logout, given a sets of login and
logout time pairs (number N), write a function that can show the number of
users (max Number K) online at any given time.
请问这题怎么做? 方向应该是要减少每次query的时间,因为预处理的时间要 NlogN应
该是无法减少的。
数据结构要用interval tree, 每次query就是KlogN,这也不快呀。有没有什么更好的
方法。
logout time pairs (number N), write a function that can show the number of
users (max Number K) online at any given time.
请问这题怎么做? 方向应该是要减少每次query的时间,因为预处理的时间要 NlogN应
该是无法减少的。
数据结构要用interval tree, 每次query就是KlogN,这也不快呀。有没有什么更好的
方法。