Leetcode 202 question: two solutions to Happy Number
Title Description
Determines whether a number n is a happy number. The definition of happy number is as follows:
Starting with any positive integer, replace the number by the sum of the squares of its digits. Repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1. Those ...
Posted by redrabbit on Sat, 20 Nov 2021 21:35:38 -0800
Message queuing - RabbitMQ
Message queuing - RabbitMQ
Teaching video address: Learning companion - flying brother - rabbitmq Code address: link: https://pan.baidu.com/s/1-N0vQRhAO4kbkRk9w8BS2w Extraction code: zoh7
What is middleware
Since the 1980s, Chinese enterprises have gradually carried out information construction. Due to the immature methods and systems and ...
Posted by agadgil on Sat, 20 Nov 2021 21:29:53 -0800
[computer graphics] hexahedron rotation and real-time switching between dotted and solid lines - code implementation
Chapter I operation background
1.1 operation requirements
programming to realize the rotation of a polyhedron. In the process of polyhedron rotation, invisible lines are represented by dotted lines; Visible lines are represented by solid lines.
1.2 development technology
this job is implemented by front-end technology, m ...
Posted by lur on Sat, 20 Nov 2021 21:29:06 -0800
Spring MVC parameter passing summary
Content type definition
MediaType, that is, Internet Media Type; It is also called MIME type. In the Http protocol message header, content type is used to represent the media type information in the specific request.
Common media formats are as follows:
text/html: HTML formattext/plain: plain text formattext/xml: XML formatimage/gif: gif p ...
Posted by dare87 on Sat, 20 Nov 2021 21:25:06 -0800
Minimum spanning tree of graph (implementation and explanation of prim algorithm and kruskal algorithm)
catalogue
1. Topic introduction
Let's start with the topic , It is convenient to understand and reflect the algorithm more intuitively
2. Introduce my understanding of the implementation of prim algorithm code in books
1. Function of lowcast array
2. Function of adjvex array
3.kruskal algorithm
3. If you want the sou ...
Posted by rpanning on Sat, 20 Nov 2021 21:24:35 -0800
Web automatic download and conversion Word automatic typesetting
the application of Web automatic download and conversion of Word mainly involves the application of crawler technology and docx. Through the application of crawler, you can quickly download the content, pictures and videos you want to collect, and use docx to realize the automatic typesetting of Word. If a web contains dozens or even hun ...
Posted by emilyfrazier on Sat, 20 Nov 2021 21:12:06 -0800
TensorFlow by Google over fitting optimization Machine Learning Foundations: Ep #7 - Image augmentation and overfitting
1. Over fitting optimization, data enhancement, Cats v Dogs Augmentation
https://colab.research.google.com/github/lmoroney/dlaicourse/blob/master/Course%202%20-%20Part%204%20-%20Lesson%202%20-%20Notebook%20(Cats%20v%20Dogs%20Augmentation).ipynb Let's start with a very effective model for learning Cats v Dogs.
It's similar t ...
Posted by Lukey on Sat, 20 Nov 2021 20:48:06 -0800
JavaSE: common API s for Java in the third phase
1. Interact with users
Parameters for running Java programs
Recall the entry of the Java program -- the method signature of the main() method:
public static void main(String[] args)
The following explains in detail why the main() method uses this method for signature.
Public modifier: Java classes are called by the JVM. In order f ...
Posted by telefiend on Sat, 20 Nov 2021 20:38:48 -0800
Simple summary of Java exception system
catalogue
preface
1, Exception overview
2, Exception handling
3, Custom exception
preface
hello, guys, long time no see! In today's article, I want to talk about the exception class of Java. I believe the little friends who have learned Java are not unfamiliar with exceptions. Then the little friends who have l ...
Posted by pelegk2 on Sat, 20 Nov 2021 20:20:01 -0800
Interpretation of HashMap & concurrent HashMap source code of jdk1.7+1.8
catalogue
preface
HashMap
Base 1.7
Base 1.8
Traversal mode
ConcurrentHashMap
Base 1.7
Base 1.8
summary
preface
Like Map Key Value It is a very classic structure in software development, which is often used to store data in memory.
This article mainly wants to discuss a concurrent container such as ConcurrentHashMap. B ...
Posted by webing on Sat, 20 Nov 2021 20:17:44 -0800