public MangChuoi TimDanhSachDuong() { MangChuoi kq = new MangChuoi(); for (int i = 0; i < length; i++) { kq.Them(a[i].Duong); } return(kq); }
public MangChuoi TimDuongSoLuongThueBaoCaoNhat(out int max) { max = TimSoLuongThueBaoCaoNhatCuaDuong(); MangChuoi md = TimDanhSachDuong(); MangChuoi kq = new MangChuoi(); for (int i = 0; i < md.length; i++) { if (max == DemSoLuongThueBaoTheoDuong(md[i])) { kq.Them(md.a[i]); } } return(kq); }