leetcode array simple best time to buy and sell stocks
subject
Given an array, its i-th element is the price of a given stock on the i-th day. If you are only allowed to complete one transaction at most (that is, to buy and sell a stock once), design an algorithm to calculate the maximum profit you can obtain. Note: you can't sell shares before you buy ...
Posted by jgmiddel on Thu, 25 Jun 2020 19:28:00 -0700
Supplement animation of android animation
Mending animation
Animation classification
Mending animation
Animation classification rules
translate animation
scale animation
rotate animation
Transparency animation alpha
Animation combination set
Code address
Animation classification
Mending animation
There are four operations: Pan, zoo ...
Posted by davitz38 on Wed, 24 Jun 2020 20:37:31 -0700
ASP.NET Progressive application of core blazer webassembly (PWA)
Blazor supports progressive application development, or PWA. Using PWA mode can make web application have the experience of native application.
What is PWA
PWA application refers to those web applications developed by using specified technology and standard pattern, which will give them the characteristics of web application and native appli ...
Posted by bosco500 on Wed, 24 Jun 2020 19:55:24 -0700
java calls SMS interface to send SMS
java calls SMS interface to send SMS
1. Download interface file
2. Open the java folder
2.1 Getting jar package dependencies
2.2 Getting Code Templates
3. Create a project
3.1 Open eclipse software to create a dynamic web project
3.2 Import jar package dependencies
3.3 Tool classes required to create package i ...
Posted by brickstermike on Wed, 24 Jun 2020 18:59:47 -0700
LayUI -- page element
Page elements
layout
Layout container
Fixed width
Place the grid in a specific container with class = "layeui container" so that the width is fixed in devices above the small screen and the columns are controllable.
<div class="layui-container">
<div class="layui-row">
......
</div>
</div>
Full width ...
Posted by ggkfc on Wed, 24 Jun 2020 00:38:37 -0700
Based on PaddleHub to develop a registration system for students' wearing of masks
Introduction to PaddleHub
PaddleHub is a domestic in-depth learning framework launched by Baidu - "flying oar" pre training model management and migration learning tool. Through PaddleHub developers can use high-quality pre training model and fine tune API to quickly complete the whole proce ...
Posted by excence on Tue, 23 Jun 2020 22:53:42 -0700
NSTimer & CADisplayLink & GCD of timers in iOS
summary
In daily development, we often need to deal with timing, such as the cycle of some animation, SMS countdown, etc. this note summarizes some of the development I used in my work, please communicate more
NSTimer
The most basic timer in iOS is implemented by Runloop in essence. Generally, it is more accurate, but when there are more time-c ...
Posted by riceje7 on Mon, 22 Jun 2020 01:50:31 -0700
Share Spring Security source level login process based on company project
In the front
First of all, I contacted this framework and soon remembered that when I first came in, my tutor also told me the process, because I didn't use this thing in the previous project, so I was confused. Recently, I just met some login requirements, and I took advantage of my interest to lear ...
Posted by ChrisF79 on Sun, 21 Jun 2020 01:19:50 -0700
Operating system experiment - disk scheduling algorithm (FIFS SSTF SCAN)
Operating system experiment - disk scheduling algorithm (FIFS SSTF SCAN)
1, Purpose of the experiment
1. Understand the strategy and principle of disk scheduling;
2. Understand and master the disk scheduling algorithms: FCFS, SSTF and SCAN.
2, Experiment content
1. First come, first served (FCFS), ...
Posted by ryanfern86goa on Sat, 20 Jun 2020 22:02:17 -0700
How to use JQ to call ajax (with free and permanent background URL)
On the Ajax operation of jQ
the front
About AJAX (Baidu Encyclopedia)
JQ calls AJAX instance
1. load() method of jquery
2. getJSON method of jquery
3.jquery's $. get() method
4.jquery's post() method
5. jquery's $. ajax() method
Free interface
the front
Although JQ is not used in our work now, ...
Posted by kelharis on Fri, 19 Jun 2020 03:45:20 -0700