Week 1 algorithm learning and sorting

Weekly summary of algorithm practice (10.31-11.6) Learning objectives: One week elementary practice of algorithm Learning content: 1. Question: call fee calculation 2. Problem: time conversion 3. Problem: Abbreviated summation 4. Problem: word encryption 5. Problem: monkeys eat peaches Study time: 1. 7 p.m. - 9 p.m. from Monday to ...

Posted by SieRobin on Sat, 06 Nov 2021 13:05:49 -0700

typescript basic learning

1: typescript introduction and environment construction 1. Introduction to typescript TS is a superset of JavaScript and can be compiled into pure JavaScript. TS adds many features, such as data types, classes, inheritance and interfaces. 2. Build typescript environment i. Project environment construction Install node. JS = > Global typescr ...

Posted by SimpleManWeb on Sat, 06 Nov 2021 13:03:08 -0700

Data type of clickhouse

data type In order to improve performance, ClickHouse provides composite data types compared with traditional databases. ClickHouse's Upadate and Delete are implemented by the Alter variant. 1 integer Integer includes signed integer and unsigned integer 1.1 signed integer type Range byte int8 [-128,127] 1 int16 [-32768 : 32767] 2 int ...

Posted by dmayo2 on Sat, 06 Nov 2021 12:52:23 -0700

[Java] take you from zero to a series of 5-depth analysis of array definition and use in Java

Foreword: in this article, we learn the definition and use of arrays. We have learned some basic contents of Java before, and then today we will learn arrays in Java. Each picture: Let's go into the study of arrays ba! 1, Basic usage of array To understand the basic usage of arrays, first understand: what is an array? In fact, ar ...

Posted by w00kie on Sat, 06 Nov 2021 12:51:52 -0700

Java source code reading notes - stream

Java source code reading notes - stream Why learn stream In Java programming, ArrayList is estimated to be one of the most commonly used classes, which is used as an array in daily life. For array operations, traversal, data filtering, data modification and other operations will be involved. The simplest of these operations is for loop traver ...

Posted by deljhp on Sat, 06 Nov 2021 12:10:47 -0700

Fail fast and fail safe mechanisms of Iterator

Fail fast and fail safe mechanisms of Iterator The difference between fail fast and fail safe: fail safe allows you to modify the data in the container during traversal, while fail fast does not. Fail fast Directly traverse the container. In the process of traversal, once it is found that the data in the container has been modified, ...

Posted by davestewart on Sat, 06 Nov 2021 11:56:03 -0700

Dynamic planning of student attendance records

Problem description Give you an integer \ (n \) to represent the number of days students attend. The possible attendance of students on each day is: 'A' (absence), 'L' (late), 'P' (normal attendance). If students want to obtain attendance reward, they need to meet the following conditions at the same time: The number of days absent from work i ...

Posted by mumford on Sat, 06 Nov 2021 11:52:22 -0700

Take you into the branch statement from zero understanding JavaScript to essence JavaScript

Take you to understand JavaScript from zero to essence (V) JavaScript branch statements 1, What are JavaScript statements Expressions are phrases in JavaScript. A newline phrase or a semicolon ending phrase is a line of statements. A command issued by a JavaScript statement to a browser. Statement tells the browser what to do. Statements usua ...

Posted by merck_delmoro on Sat, 06 Nov 2021 11:47:17 -0700

2021-11-05 creation and common methods of pytorch Tensor

Creation and common methods of pytorch Tensor Import pytorch package import torch View version number torch.__version__ '1.7.1' 1, Basic creation and types of tensors 1. Tensor creation method Use the pytorch tensor creation function: torch.tensor(): # Create tensor from list t = torch.tensor([1, 2]) t tensor([1,2]) # Creating tenso ...

Posted by benrussell on Sat, 06 Nov 2021 11:45:54 -0700

spring framework - annotation application of IOC

Annotation application of spring IOC To use annotation injection, you need to define a scan package In previous projects, we all assigned beans or some attributes through xml files. In fact, there is another way of annotation. Many of them are used in enterprise development. Adding annotations to beans can quickly register beans to ioc contai ...

Posted by Archangel915 on Sat, 06 Nov 2021 11:31:22 -0700