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
https://leetcode.com/problems/longest-uncommon-subsequence-i/ Given a group of two strings, you need to find the longest uncommon subsequence of this ...
分类:
其他好文 时间:
2019-02-09 19:22:08
阅读次数:
174
在刷题的过程中常常会遇到求最短路径的问题,在求无权图的问题中我们常常使用BFS来求其最短路径,而BFS无法解决网(有权图)中的问题,我们解决网中的最短路径常常使用dijkstra算法来求解。 dijkstra算法是一种贪心的思想,具体其正确性的证明,这里就不再赘述。下面来直接讲解如何使用dijkst ...
分类:
编程语言 时间:
2019-02-09 11:53:46
阅读次数:
256
LCS是Longest Common Subsequence的缩写,即最长公共子序列。一个序列,如果是两个或多个已知序列的子序列,且是所有子序列中最长的,则为最长公共子序列。(摘自百度百科) 一.DP通法 给定串1和串2,求其LCS 譬如给定2个序列: 求其最长的公共子序列。 显然长度是3,包含3 ...
分类:
其他好文 时间:
2019-02-09 01:00:28
阅读次数:
183
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 a sequence of n integers a1, a2, ..., an, a 132 pattern is a subsequence ai, aj, ak such that i < j < k and ai < ak < aj. Design an algorithm th ...
分类:
其他好文 时间:
2019-02-08 10:34:26
阅读次数:
202