Skip to content

Instantly share code, notes, and snippets.

View kienonline19's full-sized avatar
🎯
Focusing

kienonline19

🎯
Focusing
View GitHub Profile

Giải thích hàm iteration(n, m):

Mục đích

Thực hiện một lần lặp của cellular automaton, xoay các nhóm 2x2 theo quy tắc single-rotation.

Giải thích từng phần

1. Xác định iteration chẵn hay lẻ

odd = n % 2

Giải thích hàm iteration(n, m):

Mục đích

Thực hiện một lần lặp của cellular automaton, xoay các nhóm 2x2 theo quy tắc single-rotation.

Giải thích từng phần

1. Xác định iteration chẵn hay lẻ

odd = n % 2

Fundamentals of Computer Science - Programming Assessment (Set 2)

Time: 45 minutes

Instructions

  • Solve all 3 exercises in this file
  • DO NOT use: list methods (append, insert, etc.), slices, comprehensions, sets, dictionaries, or external libraries unless explicitly allowed
  • Use only plain conditionals and loops
  • Tests are provided but initially commented out

Fundamentals of Computer Science - Programming Assessment

Time: 45 minutes

Instructions

  • Solve all 3 exercises in this file
  • DO NOT use: list methods (append, insert, etc.), slices, comprehensions, sets, dictionaries, or external libraries unless explicitly allowed
  • Use only plain conditionals and loops
  • Tests are provided but initially commented out

Fundamentals of Computer Science - Programming Assessment (Easier Version)

Time: 45 minutes

Instructions

  • Solve all 3 exercises in this file
  • DO NOT use: list methods (append, insert, etc.), slices, comprehensions, sets, dictionaries, or external libraries unless explicitly allowed
  • Use only plain conditionals and loops
  • Tests are provided but initially commented out

AMD201 Report - URL Shortener Microservices Project

REPORT

AMD201 – Advanced Microservices Development & Deployment

Student Name: Pham Hoang

Student ID: GCH230016

Group Number: 9

AMD201 Report - URL Shortener Microservices Project

REPORT

AMD201 – Advanced Microservices Development & Deployment

Student Name: Pham Hoang

Student ID: GCH230016

Group Number: 9

AMD201 Report - URL Shortener Microservices Project

REPORT

AMD201 – Advanced Microservices Development & Deployment

Student Name: [Your Name]
Student ID: [Your ID]
Group Number: [Your Group]

Thuật Toán Sắp Xếp trong Python - Lý Thuyết & Thực Hành

1. BUBBLE SORT (Sắp xếp nổi bọt)

Lý thuyết:

  • Ý tưởng: So sánh và đổi chỗ các cặp phần tử liền kề nếu chúng sai thứ tự
  • Độ phức tạp: O(n²) - cả trường hợp tốt nhất và xấu nhất
  • Ưu điểm: Đơn giản, dễ hiểu
  • Nhược điểm: Chậm với dữ liệu lớn