LeetCode daily exercise (2) Add Two Numbers

subject Task analysis I'll give you two non empty lists. I want you to add them up and return the answer list. The so-called addition is the sum of the number of each corresponding two nodes. It should be noted that the answer cannot exceed 10, only one digit, and if it exceeds 10, carry. Knowledge points Linked l ...

Posted by franzy_pan on Sun, 05 Apr 2020 05:00:10 -0700

Spring Boot tutorial (XXVII) receiving uploaded multi file files

Construction project For example, to create a spring MVC project, you need the start dependency of spring boot starter thymeleaf and spring boot starter web. For example, if you can upload files to the server, you need to add tags to the web.xml to do the relevant configuration, but in the sringboot project, it has been done for you automatica ...

Posted by renob on Sun, 05 Apr 2020 04:41:32 -0700

android reflection usage -- the usage of reflection method in IWIndowManager

If you don't say much, just go to the code. It's in the code meaning annotation Method getRotation ; Object IWindowManager ; public void getRotation(){ try { //Load to get the ServiceManager class, and then get the method getService. Method getServiceMethod = Class.forName("android.os.ServiceM ...

Posted by pinochio on Sun, 05 Apr 2020 04:22:04 -0700

Builder Pattern of Effective Java

If the constructor or static factory of a class has multiple input parameters, you may not remember the corresponding properties of so many parameters when calling Object(1.0, 2.0, 3.0, 4.0, 5.0, 6.0). Moreover, if a class has more properties that need to be initialized, its constructor must also need more (still nee ...

Posted by pacognovellino on Sun, 05 Apr 2020 04:09:02 -0700

BZOJ 2002: [Hnoi2010]Bounce flying sheep

2002: [Hnoi2010]Bounce flying sheep Time Limit: 10 Sec  Memory Limit: 259 MBSubmit: 13360  Solved: 6782[Submit][Status][Discuss] Description One day, Lostmonkey invented a super elastic device. In order to show off in front of his sheep friends, he invited the little sheep to play a game together. At the beginning of the game, Lostmonkey ...

Posted by lobo235 on Sun, 05 Apr 2020 04:00:21 -0700

SpringBoot learning notes-014

Integrate Mybatis <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.1.2</version> </dependency> Steps: 1) . configure data source related properties (see Druid in the previous section) 2) . creating tables for data ...

Posted by Mhz2020 on Sun, 05 Apr 2020 03:41:40 -0700

Proxy cache configuration of nginx

There is a project that uses Baidu voice interface. Because of its small function, it doesn't want to write on the server. It plans to directly use js to tune Baidu interface, and then use nginx proxy to solve cross domain problems. Then, what can I do with token? Token must be cached and can't be cached in the browser. So I tried nginx proxy c ...

Posted by dragongamer on Sun, 05 Apr 2020 03:32:52 -0700

Linux file and directory management command base

1. Command basis 1.1 command operation syntax Command [parameter] [file] Parameter, optional Documents, optional 2. Basic command 2.1. View the current working directory pwd print name of current/workin directory Print name or working directory [root@oldboyedu ~]# pwd /root [root@oldboyedu ~]# cd /opt/ [root@oldboyedu /opt]# pwd ...

Posted by wama_tech on Sun, 05 Apr 2020 03:28:23 -0700

Luogu p1908 reverse order pair

P1908 reverse order pair Title Description TOM cat and JERRY Mouse have been competing recently, but they are all adults. They don't like to play the game of chasing each other anymore. Now they like to play statistics. Recently, TOM old cat looked up something called "reverse order pair" of human class, w ...

Posted by Doyley on Sun, 05 Apr 2020 03:13:20 -0700

Automating SQL with Python

I often use SQL in my work, which has annoying subtle differences and limitations, but after all, it is the cornerstone of the data industry.Therefore, SQL is indispensable to every data worker.Being proficient in SQL means a lot. SQL is good, but how can you just be satisfied with "good"?Why not proceed further with SQL? Statements c ...

Posted by barnbuster on Sun, 05 Apr 2020 03:05:57 -0700