1002 - find common characters
Preface
Weekly Contest 126 Of Find common characters:
Given A string array A with only lowercase letters, returns A list of all characters (including repeating characters) displayed in each string in the list. For example, if A character appears three times in each string, but not four times, you need to include that character three times in ...
Posted by mrkumar on Sat, 07 Dec 2019 00:01:47 +0100
Leetcode-43 stroke record 06 multiplication of large numbers
Given two non negative integers num1 and num2 in the form of string, the product of num1 and num2 is returned, and their product is also expressed in the form of string.
Example 1:
Input: num1 = "2", num2 = "3"
Output: "6"
Example 2:
Input: num1 = "123", num2 = "456"
Output: "56088" ...
Posted by Johnm on Fri, 06 Dec 2019 22:40:51 +0100
The front end modifies the size of the input uploaded image
My intention is to compress the quality of the picture, and accidentally write it to modify the width and height of the picture;
1. HTML code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<met ...
Posted by Cless on Fri, 06 Dec 2019 17:18:54 +0100
Java custom exception
According to the adjustment of the previous article: https://blog.csdn.net/qq_41709494/article/details/88602741
1. Syntax error (such exception cannot be handled)
2. Abnormal operation
3. System exception (such exception cannot be handled)
4. Logical error (can be handled with custom exception)
1.throws is used to throw exc ...
Posted by jboku on Wed, 04 Dec 2019 22:11:23 +0100
A case of gesture sliding card in wechat applet
Recently, there is a project to use wechat applet technology for development, one of which has been bothering me for a long time. Card sliding and gesture recognition. After some research and reference, the results are now shown. Record the pit you stepped on. If you need it, it can also help you.
Design sketch:
First, the implementation of ca ...
Posted by Dongowarrior on Wed, 04 Dec 2019 20:49:21 +0100
Form form of react+antd series: format restriction validation
Format restriction
There are many functions of forms in antd. Here are some common forms input format validation in antd:
1. The input box cannot be empty, as follows:
{getFieldDecorator('name', {
rules: [{
required: true,
message: 'Name cannot be empty',
}],
})(
<Input placehold ...
Posted by mikefrederick on Wed, 04 Dec 2019 06:58:09 +0100
Dried food! Detailed explanation of the development of token verification interface for flash login and registration
Today, I present the development of login and registration interface, which is based on token verification. Let's talk less and get to the point!
First look at the database model:
#pip install passlib
from passlib.apps import custom_app_context as pwd_context
class Shop_list(db.Model):
__tablename__ = 'shop_list'
userName = db.Column(db ...
Posted by greatstar00 on Wed, 04 Dec 2019 04:25:22 +0100
Two schemes for users to customize the theme color of a project
Preface
You should have seen many websites that can change the theme or theme color. If you want to change the built-in scheme, you can directly replace the css file, we won't talk about it. This article introduces a simple scheme of user-defined theme color replacement!
1. Relevant knowledge points
1.1 CSSStyleSheet.insertRule()
CSSStyleSheet ...
Posted by Black Rider on Tue, 03 Dec 2019 16:36:48 +0100
java encapsulation and this usage
Encapsulation: it is mainly used to set the access permission of the member name (class variable) in the class through the private keyword. After using private, the member variable can only be accessed in the current class. If it exceeds the class, the access prompt does not exist. Of course, it can also be used in methods, but less. If you wan ...
Posted by jazappi on Tue, 03 Dec 2019 11:27:54 +0100
POJ 1113 wall
meaning of the title
Title Link
The coordinates of n points on the plane are given. You need to build a fence to enclose all points, and the distance between the fence and all points is not less than l. Find the minimum length of the fence.\(n \leqslant 10^5\)
Sol
First of all, if there is no limit of l, it is obviously the length of convex hul ...
Posted by todding01 on Tue, 03 Dec 2019 09:15:02 +0100