LeetCode -- question 44 -- wildcard matching

Wildcard matching Difficulty 368 Given a string (s) and a character pattern (p), implement a wildcard match that supports'? 'and' * '. '?' can match any single character. '*' can match any string, including empty strings. Only when two strings match exactly can the match be successful. explain ...

Posted by chris.zeman on Sat, 20 Jun 2020 01:15:31 -0700

ES6 learning note 2 - build tool script

The build tool script is in the es6/tasks / directory Installed package: ~ / ES6 $NPM install gulp gulp if gulp concat webpack webpack stream vinyl named gulp liverload gulp plumber gulp rename gulp uglify gulp util yargs -- save dev ------------------------------------------------------------------------------------------------------ gulp.t ...

Posted by JoWiGo on Sat, 02 May 2020 05:12:51 -0700

BZOJ3507. [CQOI2014] wildcard matching

Description Wildcard matching of filenames is supported in the command line interface (CLI) of almost all operating systems to facilitate users. The most common wildcards are two, one Is an asterisk ("*"), which can match any character of 0 or more: the other is a question mark ("?" ), can match ex ...

Posted by alpine on Thu, 30 Apr 2020 06:19:54 -0700

JS common regular expression memo

Matching regularization Use the. test() method let testString = "My test string";let testRegex = /string/;testRegex.test(testString); Match multiple patterns Use operation symbols| const regex = /yes|no|maybe/; ignore case Use the i flag to ignore case const caseInsensitiveRegex = /ignore case/i;const testString = 'We use the i fl ...

Posted by stone.cold.steve.austin on Mon, 23 Mar 2020 07:50:38 -0700

Hands on learning of C language - parameters and parameters are pointer variables

Memory address and pointer of variable Pointer variable Assignment of pointer variable Pointer variable operators and operations Pointer variable operation Pointer variable as function parameter Change from data variable to pointer variable Change from pointer variable to data variable Array and ad ...

Posted by Frozen Kiwi on Thu, 12 Mar 2020 20:07:33 -0700

Foundation of deep learning -- a detailed introduction to matplotlib

matplotlib is inspired by MATLAB. Matlab is a widely used language and tool in the field of data drawing. MATLAB language is process oriented. Using function call, matlab can easily use a line of command to draw lines, and then use a series of functions to adjust the results. Matplotlib has a set of dra ...

Posted by jomofee on Sat, 07 Mar 2020 08:13:18 -0800

Interpretation of matplotlib in vernacular - line chart

Interpretation of matplotlib in vernacular - line chart previously on Interpretation of matplotlib in vernacular - general function and histogram,Interpretation of matplotlib in vernacular - histogram,Colloquial interpretation of matplotlib usage - adding data to columns Hello, this is W In the fi ...

Posted by matt2012 on Sun, 23 Feb 2020 03:49:09 -0800

Data structure string (explain KMP algorithm in detail)

1. Definition of string: A finite sequence of zero or more characters, also known as a string Empty string without characters A string with only spaces is called a space string 2. Abstract data type of string: ADT String ( string) Data //The element of a string consists of only one character, and the ...

Posted by seavolvox on Sat, 22 Feb 2020 04:56:51 -0800

C × unsafe code

C × unsafe code When a code block is marked with the unsafe modifier, C ා allows pointer variables to be used in functions. Unsafe or unmanaged code refers to blocks of code that use pointer variables. Pointer variable A pointer is a variable whose value is the address of another variable, tha ...

Posted by Gokul on Thu, 16 Jan 2020 05:46:52 -0800

[Xuefeng magnetic needle stone blog] Bokeh data visualization tool 2 drawing foundation

Linear graph #Creating a line plot #Importing the required packages from bokeh.io import output_file, show from bokeh.plotting import figure #Creating our data arrays used for plotting the line plot x = [5,6,7,8,9,10] y = [1,2,3,4,5,6] #Calling the figure() function to create the figure of the plot plot = figure() #Creating a ...

Posted by Madzz on Sat, 11 Jan 2020 07:27:08 -0800