参考以下博客: 1.https://segmentfault.com/a/1190000015917420 2.https://blog.csdn.net/chenzhenyu123456/article/details/80751477(主要参考) 3.https://zhuanlan.zhihu ...
分类:
Web程序 时间:
2020-03-03 22:14:10
阅读次数:
230
1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-07 3 */ 4 class Solution { 5 public int minAddToMakeValid(S ...
分类:
编程语言 时间:
2020-03-02 15:08:12
阅读次数:
76
一.定义: 依赖倒置原则(Dependecy Inversion Principle) 原文为: High level modules shouldnot depend upon low level modules.Both should depend upon abstractions.Abstr ...
分类:
编程语言 时间:
2020-03-02 14:26:10
阅读次数:
89
Given a m x n grid. Each cell of the grid has a sign pointing to the next cell you should visit if you are currently in this cell. The sign of grid[i] ...
分类:
其他好文 时间:
2020-03-02 10:51:12
阅读次数:
71
1、题目 Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two nu ...
分类:
其他好文 时间:
2020-03-01 23:19:06
阅读次数:
67
一、IOC容器 IOC(Inversion of Control,控制反转),他不是一种技术,只是一种思想,一个重要的面向对象编程的法则,它能指导我们如何设计出松耦合,更优良的程序。 DI(依赖注入)。IOC的一个重点是在系统运行中,动态的向某个对象提供它所需要的其他对象。这一点是通过DI(Depe ...
分类:
Web程序 时间:
2020-03-01 00:31:11
阅读次数:
210
一.创建Android项目 1.选择Emtpy Activity=>Next 2.配置项目 输入Name(名称) Package.name(包名) Save location(保存位置) Language(语言) Minimum API level(最低的API级别) 注意:路径和包名不能有中文 3 ...
分类:
移动开发 时间:
2020-02-29 13:16:26
阅读次数:
101
什么是页面静态化 页面静态化分为两种 一种伪静态,即url重写,一种纯静态化。 一、静态化的优点: 1有利于搜索引擎收录网站页面的信息:搜索引擎更喜欢静态的,更变于抓取,搜索引擎SEO排名会更容易提高。 2静态网页化网页稳定 3可以提高网页加载速度 4减轻服务器负担,浏览器不需要频发调用数据库。 5 ...
分类:
Web程序 时间:
2020-02-29 11:38:05
阅读次数:
108
Problem Statement Link Clarification: The problem states that for each pair of points, we consider the minimum possible distance over any possible mom ...
分类:
其他好文 时间:
2020-02-29 00:30:43
阅读次数:
61
#include<iostream> using namespace std; #include<string> #include<ctime> int main() { //添加随机数种子,作用利用当前系统时间生成随机数,防止每次随机数都一样 srand((unsigned int)time(NU ...
分类:
编程语言 时间:
2020-02-28 18:56:25
阅读次数:
91