예제 #1
0
        public MangChuoi TimDanhSachDuong()
        {
            MangChuoi kq = new MangChuoi();

            for (int i = 0; i < length; i++)
            {
                kq.Them(a[i].Duong);
            }
            return(kq);
        }
예제 #2
0
        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);
        }