Leetcode problem solving - double pointer

Double pointers are mainly used to traverse arrays, and two pointers point to different elements, so as to cooperate to complete tasks. 1. Two Sum of ordered array Leetcode-167. Sum of two numbers II - input ordered array Given an ordered array in ascending order, find two numbers so that the sum ...

Added by nadinengland on Wed, 29 Jan 2020 12:33:17 +0200

java asynchronous call method

1, Using multithreading Direct new thread Thread t = new Thread(){ @Override public void run() { longTimeMethod(); } }; Use thread pool private ExecutorService executor = Executors.newCachedThreadPool() ; public void fun() throws Exception { executor.submit(new Runnable(){ @override public v ...

Added by mrwhale on Tue, 28 Jan 2020 16:01:00 +0200

Crawler Learning (crawling weather information in a crawler battle)

1. General Framework List + Crawl Web Pages: #Data Visualization from pyecharts import Bar #Used for url connection login and other functions import requests #Parse data from bs4 import BeautifulSoup #Used to access crawled data data = [] def parse_data(url): headers = { 'User-Agent':"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWeb ...

Added by Pastulio on Tue, 28 Jan 2020 09:44:05 +0200

Small game of pushing box -- c/c + + implementation

Push box must be a classic game in many people's childhood. We still remember the scene of holding an old man's machine for entertainment. Today, I'd like to use c/c + + to implement a simple push box game with the blogger. Before writing the code, we must consider how to write the whole idea of the gam ...

Added by richardjh on Mon, 27 Jan 2020 13:30:29 +0200

Recursion (iteration) -- abnormal step jumping

Title Description A frog can jump up one step or two at a time It can also jump to level n. Find out how many ways the frog can jump to an n-level step. Topic analysis According to the previous topic: frog only jumps 1 or 2, it can be concluded that it is a Fibonacci problem, that is, a[n]=a[n-1]+a[n-2], then a[n]=a[n-1]+a[ ...

Added by mikeeeeeeey on Thu, 23 Jan 2020 18:22:55 +0200

Introduction to Spring Boot Starters

Article Directory Web Start Test Starter Data JPA Starter Mail Starter conclusion Dependencies are a very important aspect of any complex project that requires attention and information. Important as they are, we don't need to spend too much time on them, because dependencies are just a framework. ...

Added by haironfire on Thu, 23 Jan 2020 03:04:14 +0200

TA Compile/Entry Function/Signature Article Translation

Preface: Translation: https://optee.readthedocs.io/en/latest/building/trusted_applications.html Last translated article: Installation of OP-TEE .After installation, I don't want to know the details of the whole process of the program.Now I want to rewrite hello world for myself to interact between TA an ...

Added by BLeez on Wed, 22 Jan 2020 05:32:15 +0200

Constructing Roads minimum spanning tree

Constructing Roads Original question link https://vjudge.net/competition/352170 "problem / C The topic gives the relationship of all roads, and the roads that have been repaired, to find the minimum value of the rest roads. It's better to read the map directly. When reading the repaired Road, chang ...

Added by red-x on Tue, 21 Jan 2020 19:38:17 +0200

Winter vacation training in freshman year --- stack

Winter vacation training (7) - NEFU order Today's topic 1. Stack programmer input problem nefu 1624 #include <iostream> #include <bits/stdc++.h> using namespace std; int main() { stack < char >s1; stack < char >s2; char str[110]; gets(str); int l= ...

Added by Chris16962 on Tue, 21 Jan 2020 18:50:10 +0200

caffe: Chinese character recognition

https://www.jianshu.com/writer#/notebooks/24210100/notes/28352164 In the last part, we introduced the construction of caffe environment, and this time we started the real caffe practice. Of course, the training of the model needs a good text set. We haven't found a suitable printed Chinese character ...

Added by sarah on Mon, 20 Jan 2020 11:41:06 +0200