CSD201_-_FA_2024_-_PE_-_s_-_7_2876.webp
Lan Anh1

CSD201_-_FA_2024_-_PE_-_s_-_7_2876.webp

  • Media owner Lan Anh1
  • Ngày thêm
Output in the file f1.txt must be the following:Kizspy. me,,9,4) (C,4,3) (D,8,6) (Y,6,-7) (E,2,5) (F,-6,7)
(Y,6,-7) (C,4,3) (B,9,4) (E,2,5) (D,8,6) (F,-6,7)
void f2() - Perform breadth-first traversal from the root but display to file f2.txt nodes with non-empty left child only. Hint: Copy the function breadth(...) to function breadth2(...) and modify it.Output in the file f2.txt must be the following:
(C,8,2) (D,6,1)(E,9,4) (F,2,-1) (G,7,3) (H,10,8) (1,1,7) (1,3,9) (K,-1,5) (L,5,10) (Μ,4,6)
(C,8,2) (D,6,1) (E,9,4) (H,10,8) (1,1,7)
void f3()- Suppose p is the 6th node when performing the breadth-first traversal of the tree and fa is p's father. Delete p by copying. Output in the file f3.txt must contain 3 lines: statements to display line 1 and line 3 are already given. You must use the statement f.writeBytes(fa.info + "\r\n
"); to display fa in line 2.(C,8,2) (D,6,1) (E,9,4) (F,2,-1) (G,7,3) (H,10,8) (1,1,7) (1,3,9) (K,-1,5) (L,5,10) (Μ,4,6)
(E,9,4)
(C,8,2) (D,6,1) (E,9,4) (F,2,-1) (G,7,3) (1,1,7) (Κ,-1,5) (1,3,9) (M,4,6) (L,5,10)
2
Zoom

90%
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
CSD201_-_FA_2024_-_PE_-_s_-_7_2876.webp
File size
181.2 KB
Dimensions
1920px x 803px

Share this media

Back
Bên trên Bottom