需要 h1b amendment, 然后重新 申请perm , 140。priority date 可以保留。
bow
【在 z******r 的大作中提到】 : Up : : bow
w*m
10 楼
another stack just keeps the current min information. And it updates only when minimum element in the stack changes(a number smaller than current minimum pushes in or current minimum pops out)
two stacks, one to keep min and push/pop together or one stack but every item has a local min, i.e. class MinStack { Stack stack; private class StackItem { public T Data { get; set;} public T LocalMin { get; set;} } }
When you perform a pop operation, check if the popped element is the same as the current minimum. If it is, pop it off the minimum stack too. seems not correct - how about the popped up element is not current minimum but another element in the minimum stack. next time when a current minimum is popped out, an incorrect current minimum might be used from the minimum stack.
【在 d*********g 的大作中提到】 : 好方法
t*0
18 楼
this is not possible. suppose there is such an element in the minimum stack - then it must be pushed into minimum stack earlier then current minimum. Therefore it is pushed into the regular stack earlier then current minimum... this is correct.
【在 t****0 的大作中提到】 : When you perform a pop operation, check if the popped element is the same : as the current minimum. If it is, pop it off the minimum stack too. : seems not correct - : how about the popped up element is not current minimum but another element : in the minimum stack. : next time when a current minimum is popped out, an incorrect current : minimum might be used from the minimum stack.