题目: Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The ans ...
分类:
其他好文 时间:
2019-04-26 00:33:28
阅读次数:
131
题目如下: Given an array A of integers, return the length of the longest arithmetic subsequence in A. Recall that a subsequence of A is a list A[i_1], A[i ...
分类:
其他好文 时间:
2019-04-24 23:35:51
阅读次数:
207
http://changelog.ca/log/2013/08/09/software_engineer_title_ladder Within the software engineering profession, there is an ordered set of titles that a ...
分类:
其他好文 时间:
2019-04-18 13:31:04
阅读次数:
131
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. Example ...
分类:
其他好文 时间:
2019-04-17 09:28:30
阅读次数:
142
H - 三角形 4.1 Description A lattice point is an ordered pair (x,y) where x and y are both integers. Given the coordinates of the vertices of a triangle( ...
分类:
其他好文 时间:
2019-04-16 01:34:05
阅读次数:
193
Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the **longest** path b... ...
分类:
其他好文 时间:
2019-04-15 20:29:09
阅读次数:
178
题目链接:http://poj.org/problem?id=2533 Time Limit: 2000MS Memory Limit: 65536K Description A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let ...
分类:
其他好文 时间:
2019-04-15 16:03:37
阅读次数:
152
1.Algorithm 给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度 https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/ 2.Review https://mp.weixi ...
分类:
其他好文 时间:
2019-04-14 18:12:31
阅读次数:
257
1、无序列表(unordered list) 需要用到的标签:<ul></ul> <li></li> 使用属性:disc(实体圆)、circle(空心圆)、square(方块实体) 效果图: 2、有序列表(ordered list) 需要用到的标签:<ol></ol> <li></li> 效果图: ...
分类:
其他好文 时间:
2019-04-12 00:59:49
阅读次数:
190
http://www.spoj.com/problems/LCS/ 题目:求两个串的最长公共子串 分析: #include <bits/stdc++.h> #define LL long long #define P pair<int, int> #define lowbit(x) (x & -x) ...
分类:
其他好文 时间:
2019-04-10 23:26:22
阅读次数:
221