HCM202_-_SP23_-_FE_2_101.webp
L

HCM202_-_SP23_-_FE_2_101.webp

  • Media owner love_you
  • Ngày thêm
2
(N,8,-1)
void f4() - Print all internal nodes of the tree. Output in the file f4.txt must be the following:(line 1: pre-order traversal, line 2: internal nodes (by pre-order traversal))
(W,6,2) (Q,1,4) (Κ,5,2) (L,4,8) (Μ,3,9) (Ν,9,5) (Α,7,-3)
(W,6,2) (Q,1,4) (Κ,5,2) (L,4,8) (Ν,9,5)
void f5() - Suppose p is the 2nd node when performing the pre-order traversal of the tree. Delete the node p by copying. Output in the file f5.txt must be the following:(line 1: pre-order traversal, line 2: pre-order traversal (deleted 2nd)):
(K,7,9) (D,4,3) (Η,2,6) (L,1,5) (Q,3,1) (C,6,-4) (6,9,-6) (M,8,7)
+ 150%
Zoom

Close

Thông tin

Category
HCM202
Thêm bởi
love_you
Ngày thêm
Lượt xem
940
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom