## Longest ascending subsequence-dynamic programming

Problem description Given an unordered array of integers, find the length of the longest ascending subsequence. Example: Input: [10, 9, 2, 5, 3, 7, 101, 18] Output: 4 Interpretation: The longest ascending subsequence is [2,3,7,101], and its length is 4. Explain: There may be multiple combinations of ...

Posted on Sun, 06 Oct 2019 02:25:39 -0700 by pthurmond

## JavaScript Data Structure and Algorithmic Binary Heap

Binary heap data structure is a special binary tree. It can find the maximum and minimum efficiently and quickly. It is often used in priority queue and well-known heap sorting algorithm. Two fork pile Binary heap has the following two characteristics: It is a complete binary tree. Each layer of the number has left and right sub-nodes (except ...

Posted on Sun, 06 Oct 2019 02:00:49 -0700 by Mad_Mike

## LOJ#2305 [NOI2017] Game 2-sat Question qwq

Topic link: Portal 2_sat2-sat2_sat good question. Because D is less than 8dleq8d is less than 8, Coe takes into account that Volley O(2d)O(2^d)O(2d) enumerates all x. It is found that if'x'takes'a' or'b'here, it can contain the case of this person choosing A/B/CA/B/CA/B/C, so only enumerating two kinds ...

Posted on Sat, 05 Oct 2019 22:36:35 -0700 by my8by10

## MyBatis Plus-4-Conditional Constructor

Conditional constructor 1.1 EntityWrapper Mybatis-Plus constructs query conditions through Entity Wrapper (EW, a query condition constructor encapsulated by MP) or Condition (similar to EW), which is simple and convenient! Entity wrapper, mainly used to deal with sql splicing, sorting, entity parameter query, etc. Entity Wrapper inherits Wrapp ...

Posted on Sat, 05 Oct 2019 21:59:19 -0700 by Hokus

## HDU 5418 Victor and World [Shortest Path + Pressure DP]

Source of title: http://acm.hdu.edu.cn/showproblem.php?pid=5418 At first I thought it was TSP, but later I found that there was a difference between the two.Traveling salesman problem: the shortest path a person needs to go through n other points once from one point and return to the origin (no more th ...

Posted on Sat, 05 Oct 2019 13:50:33 -0700 by escabiz

## Delta Wave UVA1478 (Combinatorial Mathematics + High Precision C++)

Delta Wave Topic link: https://vjudge.net/problem/UVA-1478           Title Solution Poisonous topic (in fact, thinking is very simple, that is...) It is found that its model is the classic model of the number of the Catalan, but there is a slight change in it. In fact, this problem is to se ...

Posted on Sat, 05 Oct 2019 06:38:02 -0700 by alcoholic1

## input uploads pictures and compresses them (vue, front end, js)

Hello, everyone. I'm Yunhao. I don't say much. I'm going straight to the point. 1. Get the input upload file (self-access, also available through vant's upload component)2. Convert to base64 file3, compression4. Convert to blob file5. Upload.Directly below the code (this code segment is used in vue&vantui, the principle is in, according to ...

Posted on Sat, 05 Oct 2019 03:22:47 -0700 by havenpets

## FJUT Summer Holiday 3rd Weekly Competition Mr. C-Guo's Magic Match

Niuke's original topic, the author zb back pot. Topic: On the Magic Matrix, choose the smallest cost and meet the requirements of the topic; Thought: Enumerate each energy size from small to large, calculate the cost of destroying the magic array, and take the smallest, because the required magic coin i ...

Posted on Fri, 04 Oct 2019 15:44:10 -0700 by mrneilrobinson

## Examples of opengl Template Testing

Links to the original text: https://my.oschina.net/fuyajun1983cn/blog/263963 In opengl, you can turn on the template testing function to limit a part to be paintable and a part to be n ...

Posted on Fri, 04 Oct 2019 03:51:33 -0700 by fxb9500

## Selenium + Headless Chrome crawls Bing image search results

Bing image search results are loaded dynamically. If we use requests directly to access the page to crawl data, we can only get very few images. So we use Selenium + Headless Chrome to crawl search results. Before we start, we need to introduce xpath. XPath XPath is XML Path Language (XML Path Language) is a language used to locate a part of ...

Posted on Thu, 03 Oct 2019 19:39:41 -0700 by enchance