100%还原设计图,要注意: 看布局,分析结构。 感觉难点在于: 1.测量精度(ps测量数据); 2.文字的行高。 前段时间写个移动端适配的页面(刚接触这方面),查了一些资料,用以下方法能实现: 1.设置理想视口: 自动适应屏幕宽度 :网页的宽度默认等于屏幕的宽度 <meta name="viewp ...
分类:
移动开发 时间:
2019-02-12 11:39:43
阅读次数:
189
Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000. Example 1:Input: Output ...
分类:
其他好文 时间:
2019-02-11 12:26:57
阅读次数:
172
Windows版本因为文件访问句柄数被限制为1024了,当访问量大时就会无法响应。 会有如下错误提示:maximum number of descriptors supported by select() is 1024 修改参数worker_connections可以解决此限制,还有其它很多说修改 ...
分类:
Windows程序 时间:
2019-02-11 12:24:20
阅读次数:
1159
Description: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: ...
分类:
其他好文 时间:
2019-02-10 23:08:13
阅读次数:
232
在刷题的过程中常常会遇到求最短路径的问题,在求无权图的问题中我们常常使用BFS来求其最短路径,而BFS无法解决网(有权图)中的问题,我们解决网中的最短路径常常使用dijkstra算法来求解。 dijkstra算法是一种贪心的思想,具体其正确性的证明,这里就不再赘述。下面来直接讲解如何使用dijkst ...
分类:
编程语言 时间:
2019-02-09 11:53:46
阅读次数:
256
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Foll ...
分类:
其他好文 时间:
2019-02-08 18:36:30
阅读次数:
153
Web前端接入 验证码接入需要先在管理后台中注册获取APPID和APPSECRET,注册步骤请参考 快速开始 2. 快速接入步骤 1、在Head的标签内最后加入以下代码引入验证JS文件(建议直接在html中引入) 3、为验证码创建回调函数,注意函数名要与data-cbfn相同 完成以上操作后,点击激 ...
分类:
Web程序 时间:
2019-02-08 17:14:05
阅读次数:
611
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:
其他好文 时间:
2019-02-07 17:51:36
阅读次数:
159
算法描述: Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Exampl ...
分类:
其他好文 时间:
2019-02-07 12:07:44
阅读次数:
187
二叉树时间复杂度的训练: T(n) = 2T(n/2)+o(n) nlogN 归并排序 快排:平均nlogN 最坏 n^2 树形展开法 T(N) = 2T(N/2)+O(1) o(n) 二叉树的时间复杂度= N*每个节点的处理时间 前序便利:根左右 中序 左根右 后序:左右根 DFS深度优先搜索:1 ...
分类:
其他好文 时间:
2019-02-07 09:31:06
阅读次数:
120