## Leetcode problem solving algorithm greedy algorithm (python version)

1. The longest chain that a number pair can form 646. Longest number pair chain (Medium) Method 1: greedy algorithm Sort all pairs according to the size of the second number. The first step is to select the pair with the smallest ending number. Then, each step selects the number that does not conflict with the last selected number pair and ...

Added by zaiber on Thu, 10 Mar 2022 02:07:41 +0200

## [school recruitment -- phase II network programming] UDP socket programming

1, Preparatory knowledge 1. Understand source IP address and destination IP address There are two IP addresses in the IP packet, one is the source IP address and the other is the destination IP address. IP address is responsible for transmitting data from one host hardware to another host hardware. IP address identifies the uniqueness of the ...

Added by neal.pressley on Tue, 08 Mar 2022 17:58:56 +0200

## Socket network programming learning notes UDP assisted TCP point-to-point transmission case -- UDP broadcast, search and obtain IP/Port

1. UDP search IP and port Implementation principle: in a LAN, you don't know the IP address of the server, but only the UDP Port common to the server. In this case, you want to realize the TCP connection. TCP is a point-to-point connection, so you need to know the connection IP address and Port of TCP. How to get the IP and Port of TCP? It ca ...

Added by zbert on Sun, 27 Feb 2022 09:23:37 +0200

## Ethernet communication UDP - data transmission

catalogue 1, Introduction to Ethernet communication 1.OSI seven layer model 2. Ethernet packet analysis 3.IP header checksum calculation and inspection 2, Ethernet communication example 1. Overall experimental block diagram 2. Sequence diagram of transmission part 3. Experimental code and simulation results summary 1, Introduction ...

Added by MrTL on Tue, 22 Feb 2022 07:03:44 +0200

## UDP protocol realizes simple communication C++

1. IP address Computers in the network use IP addresses for unique identification. There are two types of IP addresses: IPv4 and IPv6. It is generally expressed in decimal system, such as ipv6.168.1, but not in decimal system. How to view IP address related information: Under Windows system, open cmd, enter the command ipconfig, and press en ...

Added by cooldude832 on Sun, 20 Feb 2022 13:11:56 +0200

## UC growth path 13

Review: UC growth path 1 UC growth path 2 UC growth path 3 UC growth path 4 UC growth path 5 UC growth path 6 UC growth path 7 UC growth path 8 UC growth path 9 UC growth path 10 UC growth path 11 UC growth path 12 1, Network programming model and Implementation Based on TCP There are two types of transport layer: TCP and UDP TCP is connect ...

Added by mshen on Fri, 18 Feb 2022 23:59:09 +0200

## openwrt development summary using pthread to realize socket multi process server

At the beginning of last year, there were a lot of code written in openwrt, although I felt sorry that there was a lot of code written in openwrt in the early days of the company. Let's briefly introduce the socket multi process server on openwrt. Look at the code This is c language code. The code written at that time was not very good. Don' ...

Added by breath18 on Thu, 17 Feb 2022 14:27:35 +0200

## The realization of forging udp package and binding network card to send data under linux

1. Include header file #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <arpa/inet.h> #include <unistd.h> #include <string.h> #include <time.h> #include <stdlib.h> #include <stdbool.h> #include <net/if.h> 2. Set src and dest, and define a global socket at ...

Added by pppppp on Wed, 09 Feb 2022 22:38:02 +0200

## C # write the upper computer and use UDP to send Json format data to the single chip microcomputer

Project requirements Many times, we want to send commands to our MCU through the upper computer. We can control the MCU to carry out some operations. Generally, we have several methods, including serial port transmission, Bluetooth transmission, WIFI transmission such as UDP and TCP, etc. In this paper, C# is used to write the upper comput ...

Added by dkjohnson on Thu, 27 Jan 2022 03:07:34 +0200

## Java UDP uses ECs to write simple chat rooms

2.1 UDP uses ECs to write simple chat rooms In the past, I learned network programming and wrote a series of notes. But I didn't rent a server at that time, so I didn't really learn network programming at all. This time, I will build the server program I wrote on the alicloud server I rented. Then we made a series of attempts. Among them, I ...

Added by Morpheus on Sun, 23 Jan 2022 05:16:03 +0200