l*d
2 楼
我是主申请人,上个月交了485,PD 06/09/2009,RD 02/14/2012,同时申请了EAD 和
AP.这个月LG要换工作,准备H1B Transfer,但不知道485pending的时候,副申请人可以
随便换工作吗?这对H1B Transfer会有影响吗?
麻烦知道的指点一下,谢谢!
AP.这个月LG要换工作,准备H1B Transfer,但不知道485pending的时候,副申请人可以
随便换工作吗?这对H1B Transfer会有影响吗?
麻烦知道的指点一下,谢谢!
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的各位同仁好!
{
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的各位同仁好!
a*a
4 楼
副的没关系,随便换。
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();
//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();
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;
不过,楼主用两个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;
c*r
8 楼
多谢楼上两位。学习了!
相关阅读
移民局出新政策了。。。。【转载】法律角度分析485表格中关于共产党的问题【已解决】BAL律师坚持10月份用Final Action Date来FilingCase is Ready to Be Scheduled for An Interview想申请EB签证,不知道自己的case怎么样,求建议请问个棘手的EB2还是EB3的问题485交材料和面试的时候还需要公司的财务资料吗?9/11 德州面经 排期倒退 case要转到Nebraska请问出生公证和结婚公证?排队的人太多!中国籍申请EB-1 首现排期i765 eligibility category 问题case must be reviewed4月RD,还没收到combo卡也没面试通知怎么办收到粉色 courtesy letter和面试有关系吗?请问有没有面试时候被RFE的【EB3 2018年9月第1绿】 西雅图面经PD14.3父母绿卡很久没入境了如何重新入境?EB3 2018年9月第N绿. pd 2014-09485排期中,有EAD有H1B的时候怎么转行跳槽怎么查perm的status