Exercises 2223

Here are some exercises that I recommend to do.

2023-05-04 [solution]

  1. is_valid_hash(hash:str, difficulty:int) -> bool
  2. is_prime(n:int) -> bool
  3. int2base(n:int, base:int) -> str
  4. base2int(n:str, base:int) -> int
  5. Generator:
    1. $\mathbb{N}$
    2. $2\mathbb{N}$
    3. $2\mathbb{N} + 1$
    4. $\mathbb{P}$
  6. function with args & kwargs
  7. len_in_bits(n:int) -> int

2023-05-11 [solution]

  1. lambda function
  2. @ decorators
  3. bits
    1. size
    2. & and
    3. | or
    4. ^ xor
    5. ~ neg
    6. >> right shift (//2)
    7. << left shift (*2)
  4. floating point number
  5. encrypt with translation and permutation
  6. rsa encryption
  7. bcbcpy.crypto
  8. is vs ==

2023-05-15 [tuto]

  1. Authentication
  2. overflow & underflow
  3. OOP
    1. Encapsulation
    2. @property & @---.setter
    3. Inheritance
      1. super
      2. Single level
    4. Abstraction

2023-05-25

  1. OOP
    1. @...method
    2. Inheritance
      1. Type
        1. Hierarchical
        2. Multilevel
        3. Hybrid
  2. Linked List
  3. Block

2023-06-01

  1. Recap
  2. Blockchain

2023-06-08

  1. Python module implementation
  2. Shell
  3. Git
Written on May 16, 2023