2022 winter vacation algorithm summary

1, Introduction to algorithm 1. Simple version 2022-1-11 704. Binary search Topics and examples Given an n-element ordered (ascending) integer array nums and a target value target, write a function to search the target in nums. If the target value exists, return the subscript, otherwise return - 1. Example 1: Input: num = [- 1,0,3,5,9,12], ...

Posted by vapour_ on Sun, 27 Feb 2022 11:38:53 +0100

Hadoop of big data -- Window API + time semantics + Watermark in Flink

1, window concept Window is the core of dealing with infinite flow. The window divides the flow into "buckets" of limited size, and we can apply the calculation on the buckets. This document focuses on how to perform window operations in Flink and how programmers can get the most benefit from the functions it provides. T ...

Posted by BLeez on Sun, 27 Feb 2022 11:36:41 +0100

RabbitMQ one is enough

About RabbitMQ RabbitMQ is an open source message broker software (also known as message oriented middleware) that implements the advanced message queuing protocol (AMQP). RabbitMQ server is written in Erlang language, and clustering and failover are built on the framework of open telecommunications platform. All major programming language ...

Posted by programguru on Sun, 27 Feb 2022 10:48:51 +0100

Linux producer consumer model

Producer consumer model Concept of producer consumer model Producer consumer model is to solve the strong coupling problem between producers and consumers through a container. Producers and consumers do not communicate directly with each other, but communicate through this container. Therefore, after producing data, producers do not ...

Posted by Awanka on Sun, 27 Feb 2022 10:47:08 +0100

Is your DDL execution transactional

Is your DDL execution transactionalRecently, flyway was integrated into the project. In terms of transaction processing in the official document, an interesting paragraph was found:If your database cleanly supports DDL statements within a transaction, failed migrations will always be rolled back (unless they were marked as non-transactional).If ...

Posted by peddel on Sun, 27 Feb 2022 10:42:21 +0100

Content negotiation in SpringBoot subverts your cognition

Hello, everyone. I'm a passer-by. This is Chapter 32 of spring MVC series.This article will introduce the content negotiation in spring MVC. Some friends may have heard of it, but those who haven't heard of it may feel strange. Anyway, let me tell you a little first. This article is a very important knowledge point. Don't make mistakes. If you ...

Posted by techrat on Sun, 27 Feb 2022 10:41:04 +0100

[secretly kill the little partner Pytorch20 days - day13-nn.functional and nn.Module]

1, NN Functional and NN Module Earlier, we introduced the structure operation of Pytorch's tensor and some common API s in mathematical operation. Using these tensor API s, we can construct neural network related components (such as activation function, model layer, loss function). Most of the functional components related to Pytorch and neu ...

Posted by godsent on Sun, 27 Feb 2022 10:39:22 +0100

First acquaintance of C language

First acquaintance of C language The video comes from station b Geng Bo is just to serve as a learning note... No intention of embezzlement 1. Write c language code: 1. Create project 2. Create files 3. Execute Ctrl + F5 #include "stdio.h" int main() { printf("hello world/n"); return 0; } 4. Set linker: 5. Set line number: 6. //inc ...

Posted by kimberlc on Sun, 27 Feb 2022 10:30:48 +0100

[Django backend] wechat applet post requests to return 403 or 500 solutions

Django is simply used to provide the back-end interface for wechat applet. I am responsible for the back-end interface and my classmates are responsible for the front-end. We tested that there is no problem with the get request, but when sending the post request, the return values received by the front-end are always 500 and 403. (PS: if you wa ...

Posted by rel on Sun, 27 Feb 2022 10:08:32 +0100

Using the transformers library fine tuning

explain According to the official website Working with documents , use transformers for fine tuning. I basically follow the documents. Note: the example on the official website basically saves the model or data set into the local cache through a line of code, but it needs to climb the wall. We can also download the model and data set locall ...

Posted by Gibbs on Sun, 27 Feb 2022 09:52:41 +0100