Basic algorithm class day04

leetcode394 string decoding This problem is intuitively associated with stack processing. My idea is: Traverse the string and stack it from left to right. If you can merge, merge it first and then add it to the stackFor example, 232[asc]33[ass] First, put 232, asc, 33, ass into a string and add it to ...

Posted on Thu, 04 Jun 2020 08:53:08 -0700 by mrneilrobinson

wc command of inux

With wc instruction, we can calculate the number of bytes, words, or columns of the file. If we do not specify the file name or the given file name is "-", wc instruction will read data from the standard input device. Syntax: wc [-clw][--help][--version][file...] Parameters: -c or -- B ...

Posted on Thu, 04 Jun 2020 08:46:21 -0700 by katuki

python's requests library and beutifusoup library crawling girls' pictures

1: python crawler - using requests library to get information of web page Record your reptile process In fact, I want to use jsonpath and json before climbing, and then I found that after opening the Meitu bar website, I only thought about the methods of crawling the requests library and the beautifu ...

Posted on Thu, 04 Jun 2020 08:39:09 -0700 by Jay87

On JQ pseudo class method

In addition to four mouse state pseudo class selectors, in addition to target, jQuery supports them, which is also called filter selector in jQuery1.first-childE: First child first e element (this e element must be the first child of the parent element)2.first-of-type E:first-of-type The first E-type element (this e-element is not necessaril ...

Posted on Thu, 04 Jun 2020 08:15:26 -0700 by sqlmc

Noi online ා 2 improvement group question 3: Game

Noi online ා 2 improvement group question 3: Game preface subject analysis code preface This problem is the problem of trees. I've been told all the questions But I'm still dead. subject Portal analysis We note that the number of schemes with k k k times of non-equilibrium is g(k)g(k)g(k), ...

Posted on Thu, 04 Jun 2020 08:03:06 -0700 by system_critical

Numpy Foundation (novice come quickly!)

NumPy is a scientific computing library that provides python with high-performance vectors, matrices and high-dimensional data structures. It is realized by C and Fortran, so it has a very good performance to establish equations by vector and matrix and realize numerical calculation. NumPy is basical ...

Posted on Thu, 04 Jun 2020 07:43:47 -0700 by wildmanmatt

1018 hammer scissor cloth (20 points) PAT Java code to realize Niu Ke AC

1018 hammer scissors (20 points) Everyone should be able to play the game of "hammer, scissors and cloth": two people give gestures at the same time, and the winning and losing rules are as shown in the figure: Here is the record of the fight between the two. Please count the number of wins, ...

Posted on Thu, 04 Jun 2020 07:22:11 -0700 by jonno946

⑭ A series of usage methods of HTML5 canvas

Html5 Use picture & set background Gradient effect Draw text For example: the text in canvas is horizontally and vertically centered Shadow (text shadow & box model shadow) Pixel operation Example: operate on a single pixel (row and column) Add a mosaic to the picture synthesis Other uses ...

Posted on Thu, 04 Jun 2020 07:11:13 -0700 by sridhar golyandla

MyBatis: Reverse Engineering

catalog 1, What is reverse engineering? 2, Characteristics of MyBatis reverse engineering 1. Advantages of MyBatis reverse engineering 2. Disadvantages of MyBatis reverse engineering 3, MyBatis reverse engineering construction 1. Add dependency pom.xml 2. Create MBG profile generatorConfig.xml 3. ...

Posted on Thu, 04 Jun 2020 06:45:24 -0700 by millsy007

H5 wechat sharing friends, circle of friends, QQ

1, Wechat sharing 1. Preparation APPID official account id, application friend sharing interface, ip white list, JS interface security domain name settings (must be through the record). First, login the WeChat public platform and enter the function settings of "official account number" to ...

Posted on Thu, 04 Jun 2020 06:43:21 -0700 by Spekta