Redian新闻
>
485 Pending时副申请人可以换工作吗?
avatar
485 Pending时副申请人可以换工作吗?# EB23 - 劳工卡
c*r
1
我的最好解法要用两个stack。估计有更好的算法吧?
顺便问周末狂补coding的各位同仁好!
avatar
l*d
2
我是主申请人,上个月交了485,PD 06/09/2009,RD 02/14/2012,同时申请了EAD 和
AP.这个月LG要换工作,准备H1B Transfer,但不知道485pending的时候,副申请人可以
随便换工作吗?这对H1B Transfer会有影响吗?
麻烦知道的指点一下,谢谢!
avatar
f*5
3
while(1)
{
if(current->left) { s.push(current);current=current->left;}
else if(current->right) { s.push(current);current=current->right;}
else {
while(1)
{
printf();
if (stack.IsEmpty()) return;
temp=stack.top();
if(temp->left==current&&temp->right)
{ current=temp->right; break;}
stack.pop();
current=temp;
}
}
}

【在 c*r 的大作中提到】
: 我的最好解法要用两个stack。估计有更好的算法吧?
: 顺便问周末狂补coding的各位同仁好!

avatar
a*a
4
副的没关系,随便换。
avatar
I*A
5
不知道哪个更好理解,自己看吧
//POSTORDER traversal iteratively
public static void postOrderIteratively(BST mybst){
Stack nodestack = new Stack();
Node node = mybst.root;
Node prevnode = mybst.root;
//initialize the stack
while(node!=null){
nodestack.push(node);
node = node.left;
}
while( !nodestack.isEmpty()){
node = (Node)nodestack.pop();
//if this is the leaf node, then print the data o

【在 f*********5 的大作中提到】
: while(1)
: {
: if(current->left) { s.push(current);current=current->left;}
: else if(current->right) { s.push(current);current=current->right;}
: else {
: while(1)
: {
: printf();
: if (stack.IsEmpty()) return;
: temp=stack.top();

avatar
l*d
6
哦,谢谢你啊!

【在 a***a 的大作中提到】
: 副的没关系,随便换。
avatar
i*1
7
你这个好理解。上面那个,没看懂。。。
不过,楼主用两个stack的方法,应该是最容易理解的。

【在 I**A 的大作中提到】
: 不知道哪个更好理解,自己看吧
: //POSTORDER traversal iteratively
: public static void postOrderIteratively(BST mybst){
: Stack nodestack = new Stack();
: Node node = mybst.root;
: Node prevnode = mybst.root;
: //initialize the stack
: while(node!=null){
: nodestack.push(node);
: node = node.left;

avatar
c*r
8
多谢楼上两位。学习了!
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。