Q37_159_20250829131322.webp
Goku777

Q37_159_20250829131322.webp

  • Media owner Goku777
  • Ngày thêm
☑Kizspy.me
Answer (Choose 1 answer)
☐ A
Suppose we are considering a binary search tree.
Select the most correct java code snippet
that search a node with value x.
A. Node search(int x)
{ Node p = root;
while(p.info != x && p!=null)
{if(x<p.info) p = p.left;
}
else p=p.right;
return(p);
}
B. Node search(int x)
{ Node p = root;
while(p.info != x)
{if(x<p.info) p = p.left;
}
}
else p=p.right;
return(p);
C. Node search(int x)
{ Node p = root;
while(p!=null && p.info != x)
{if(x<p.info) p p.left;
else p=p.right;
FUQ.sh
sh the exam.
}
return(p);
}

Thông tin

Category
CSD201
Thêm bởi
Goku777
Ngày thêm
Lượt xem
2,227
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom