Skip to content

Instantly share code, notes, and snippets.

View kienonline19's full-sized avatar
🎯
Focusing

kienonline19

🎯
Focusing
View GitHub Profile
@kienonline19
kienonline19 / exam.md
Last active September 11, 2026 09:13

40 Bài Tập NumPy: Các Phép Toán Học

Từ cơ bản đến nâng cao nhẹ.

Phần 1: Phép toán element-wise và với số vô hướng (Bài 1–8)

Bài 1. Cho hai mảng sau, tính a + b, a - b, a * b, a / b.

import numpy as np

Python Basic Algorithm Exam — 5 Exercises (Easy → Hard)

Each exercise includes: problem statement, function signature, and input/output test cases.


Exercise 1 (Easy) — Sum of Multiples

Task: Write a function that returns the sum of all natural numbers below n that are multiples of 3 or 5.

Đề Bài Tập Thuật Toán Python — Bộ 2 (Dễ → Khó vừa)

Chủ đề: toán học, hai con trỏ, sắp xếp, tìm kiếm nhị phân, đệ quy + tổng tiền tố.


Bài 1 (Dễ) — Số Armstrong [Toán học]

Đề bài: Viết hàm kiểm tra một số nguyên không âm n có phải là số Armstrong hay không — tức là tổng các chữ số của nó, mỗi chữ số được nâng lên lũy thừa bằng số lượng chữ số, bằng chính số đó. (Ví dụ: 153 = 1³ + 5³ + 3³.)

Lộ Trình Học Testing 10 Buổi

Buổi 1 — Nhập môn Testing & Tư duy kiểm thử

  • Testing là gì, vì sao quan trọng (functional vs non-functional)
  • Test case, test plan, bug report cơ bản
  • Thực hành: Viết 5 test case cho 1 form đăng nhập đơn giản

Buổi 2 — Testing cơ bản cho hệ thống AI/Chatbot

  • Đặc thù khi test AI: output không cố định (non-deterministic)
  • Các loại lỗi thường gặp: hallucination, sai ngữ cảnh, trả lời lệch chủ đề

Python Recursion Exercises — 10 Problems (Easy → Medium)


Exercise 1 (Easy) — Factorial

Task: Write a recursive function that computes n! (the factorial of a non-negative integer n).

Constraints: 0 <= n <= 20.

Python Basic Algorithm Exam — 5 Exercises (Easy → Hard)

Same topic categories as (math, string, list, binary search, recursion), but with different problems. Each exercise includes: problem statement, constraints, function signature, and assert-based test cases.


Exercise 1 (Easy) — Prime Number Check [Math]

Task: Write a function that checks whether a non-negative integer n is a prime number.

Linux Command Exercises with Python subprocess

Ten real-world exercises using ls, cat, grep, find, and awk, driven from Python with subprocess. Difficulty goes from easy to medium.

Rules for every exercise

  • Use the list form (["grep", "-c", "ERROR", path]), never shell=True.
  • Use text=True and capture_output=True unless the exercise says otherwise.
  • First try the command in the terminal, then write the Python version.

PRACTICE_QUESTIONS.md — 62 pandas exercises on real, messy data

Worked solutions with explanations are in SOLUTIONS.md. Every answer there was produced by actually running the code against this dataset, so you can check yourself exactly.

Read DATASET.md first. Several questions are traps that only spring if you skipped it.


DATASET.md — The Green Jaws order exports, 2019–2022

Everything a new analyst needs to know before touching the data: where it came from, what each column means, what is wrong with it, and which questions it can and cannot answer.


1. Provenance

Green Jaws is a German mail-order nursery specialising in carnivorous plants — Venus

import base64
import struct
import turtle
import zlib
screen = turtle.Screen()
screen.setup(940, 640)
screen.bgcolor("#E8ECEB")
screen.title("Lá cờ Turkmenistan")
screen.tracer(0)