Toán học tổ hợp
II. Các dãy số và công thức quan trọng
1. Dãy Fibonaci
Dãy số Fibonaci được xác định bởi công thức sau:
{f0=0.f1=1.fi=fi−1+fi−2,với i≥2.\begin{cases}f_0 = 0.\\f_1 = 1.\\ f_i = f_{i - 1} + f_{i - 2},&\text{với }i \ge 2.\end{cases}
⎩⎪⎪⎨⎪⎪⎧f0=0.f1=1.fi=fi−1+fi−2,với i≥2.Một số phần tử đầu tiên của dãy Fibonaci là: 0,1,1,2,3,5,8,...0, 1, 1, 2, 3, 5, 8,...0,1,1,2,3,5,8,... Ngoài ra, số...
Algorithm
Viblo
Viblo Algorithm
2596
Apache Kafka - Producer - Gửi message đến Kafka bằng kafka-python
Overview
Understand how to produce message and send to the Kafka topic
Architecture
Producer has many types and sources: message from Credit Card transactions, message from Facebook, Email or any systems
When the producer send the message to kafka, kafka sau khi nhận message và randomly phân bố message đó về từng partition. Vậy nên Producer chỉ cần quan tâm việc:
Boostrap Server
Topic
Value_serializer : cách, định dạng mà message được gửi đến
client_id :...
Python
Big Data
apache kafka
2285
React Server Components
At the end of last year, the react dev team has introduced an exciting new technology called React Server Components (read here)
However, this is still on testing phase and not production ready. Still, this will have a huge effect on how we design and write our react apps, so let's have some quick intro today.
Server components allow developers to build apps that span the server and client, combining the rich interactivity of client-side apps with the improved performance of traditional server...
ReactJS
React
May Fest
server components
2967